Skip to content

Commit bc8aa55

Browse files
committed
Migrated back to sqlite
1 parent 9570d6a commit bc8aa55

File tree

6 files changed

+28
-25
lines changed

6 files changed

+28
-25
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ workspace.xml
99

1010
# database stuffs
1111
stickynotes/migrations/
12-
db.sqlite3
12+
# db.sqlite3

.idea/workspace.xml

+14-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db.sqlite3

140 KB
Binary file not shown.

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ gunicorn==20.0.4
44
whitenoise==5.0.1
55
django-registration==3.1
66
django-import-export==2.0.2
7-
psycopg2==2.8.4

sticky/settings.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,17 @@
7474
# Database
7575
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
7676

77-
print("Sticy USERNAME", os.environ["STICKY_USERNAME"])
7877
DATABASES = {
7978
'default': {
80-
# 'ENGINE': 'django.db.backends.sqlite3',
81-
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
82-
83-
'ENGINE': 'django.db.backends.postgresql',
84-
'NAME': 'stickynotes',
85-
'USER': os.environ["STICKY_USERNAME"],
86-
'PASSWORD': os.environ['STICKY_PASSWORD'],
87-
'HOST': 'localhost',
88-
'PORT': '8000',
79+
'ENGINE': 'django.db.backends.sqlite3',
80+
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
81+
82+
# 'ENGINE': 'django.db.backends.postgresql',
83+
# 'NAME': 'stickynotes',
84+
# 'USER': os.environ["STICKY_USERNAME"],
85+
# 'PASSWORD': os.environ['STICKY_PASSWORD'],
86+
# 'HOST': 'localhost',
87+
# 'PORT': '8000',
8988
}
9089
}
9190

stickynotes/views.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
from django_registration.backends.one_step.views import RegistrationView
1212

1313
HOMEPAGE = 'home.html'
14-
# baseurl = 'https://stickyynotes.herokuapp.com'
15-
baseurl = 'http://127.0.0.1:9000'
14+
baseurl = 'https://stickyynotes.herokuapp.com'
15+
16+
17+
# baseurl = 'http://127.0.0.1:9000'
1618

1719

1820
# https://stickyynotes.herokuapp.com/

0 commit comments

Comments
 (0)