Skip to content

Commit ac8dad5

Browse files
committed
Heroku configruation almost complete. Created the heroku app and linked the github repo to the app. Set up for automatic deploys on every push to main. And changed the default database in settings. Lastly ran manage.py collectstatic to serve all the static files while in production
1 parent b1fb9fb commit ac8dad5

File tree

153 files changed

+31343
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+31343
-17
lines changed

Pipfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ pyzmq = "==22.1.0"
5151
requests = "==2.26.0"
5252
s3transfer = "==0.3.4"
5353
six = "==1.15.0"
54-
sqlparse = "==0.4.1"
54+
sqlparse = "==0.4.2"
5555
toml = "==0.10.2"
5656
tornado = "==6.1"
5757
traitlets = "==5.0.5"
58-
urllib3 = "==1.26.2"
58+
urllib3 = "==1.26.5"
5959
wcwidth = "==0.2.5"
6060
whitenoise = "==5.2.0"
6161
wrapt = "==1.12.1"
62-
Django = "==3.1.5"
62+
Django = "==3.1.13"
6363
ipython_genutils = "==0.2.0"
6464
Pillow = "==8.3.2"
6565
Pygments = "==2.9.0"

Pipfile.lock

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Wampus/Wampus/settings.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,21 @@
7676
# Database
7777
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
7878

79+
# DATABASES = {
80+
# 'default': {
81+
# 'ENGINE': 'django.db.backends.sqlite3',
82+
# 'NAME': BASE_DIR / 'db.sqlite3',
83+
# }
84+
# }
85+
7986
DATABASES = {
8087
'default': {
81-
'ENGINE': 'django.db.backends.sqlite3',
82-
'NAME': BASE_DIR / 'db.sqlite3',
88+
'ENGINE': 'django.db.backends.postgresql',
89+
'NAME': 'd7erjjm2ii6une',
90+
'HOST': 'ec2-54-224-64-114.compute-1.amazonaws.com',
91+
'PORT': 5432,
92+
'USER': 'zopbyjvzldnvrw',
93+
'PASSWORD': '9126d19d2e58340951cf9e09e073631ad48019e8aa368218f3b27b5f9167ef2d',
8394
}
8495
}
8596

@@ -108,7 +119,7 @@
108119

109120
LANGUAGE_CODE = 'en-us'
110121

111-
TIME_ZONE = 'UTC'
122+
TIME_ZONE = 'EST'
112123

113124
USE_I18N = True
114125

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated by Django 3.1.5 on 2022-02-12 00:11
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('app', '0022_rename_preview_image_project_project_image'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='comment',
15+
name='id',
16+
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
17+
),
18+
migrations.AlterField(
19+
model_name='favorite',
20+
name='id',
21+
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
22+
),
23+
migrations.AlterField(
24+
model_name='profile',
25+
name='id',
26+
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
27+
),
28+
migrations.AlterField(
29+
model_name='tag',
30+
name='id',
31+
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
32+
),
33+
]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generated by Django 3.1.5 on 2022-02-12 00:26
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('app', '0025_alter_comment_date_created_and_more'),
10+
('app', '0023_auto_20220212_0011'),
11+
]
12+
13+
operations = [
14+
]

0 commit comments

Comments
 (0)