Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion myapp/myapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def logout(request):
return redirect('/')

def counter(request):
posts = [1,2,3,4,5, 'davidbelhu', 'peterwhidden', 'tom']
posts = [1,2,3,4,5, 'mary', 'jane', 'tom']
return render(request, 'counter.html', {'posts' : posts})

def post(request, pk):
Expand Down
17 changes: 12 additions & 5 deletions zigzag/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,12 +1086,12 @@ def counter(request):
'''
DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
#'NAME': BASE_DIR / 'db.sqlite3',
'NAME': 'myproject_database',
'ENGINE': 'django.db.backends.sqlite3',
#'ENGINE': 'django.db.backends.postgresql',
'NAME': BASE_DIR / 'db.sqlite3',
#'NAME': 'madeleinesalon_db',
'USER' : 'postgres',
'PASSWORD' : 'jeannette487547',
'PASSWORD' : 'password',
'HOST' : 'localhost'
}
}
Expand Down Expand Up @@ -1142,4 +1142,11 @@ def counter(request):

cd blog
python manage.py startapp posts
python manage.py makemigrations
python manage.py migrate


if css is not loading to bypass the cache in mac gooogle chrome hold down shift and refresh the page


'''