Skip to content

Commit 34e90af

Browse files
feat: Add .env.example file.
Resolves: #1
1 parent 79459e9 commit 34e90af

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DJANGO_SECRET_KEY='your_django_secret_key'
2+
DJANGO_DEBUG='False'
3+
4+
POSTGRES_DATABASE='your_postgres_database_name'
5+
POSTGRES_USERNAME='your_postgres_username'
6+
POSTGRES_PASSWORD='your_postgres_password'
7+
POSTGRES_HOST='localhost'
8+
POSTGRES_PORT='5432'

promo_code/core/urls.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import django.urls
2-
31
import core.views
4-
2+
import django.urls
53

64
app_name = 'core'
75

@@ -12,4 +10,4 @@
1210
core.views.PingView.as_view(),
1311
name='ping',
1412
),
15-
]
13+
]

promo_code/core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import django.views
21
import django.http
2+
import django.views
33

44

55
class PingView(django.views.View):

promo_code/promo_code/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
import django.urls
33

44
urlpatterns = [
5-
django.urls.path('api/ping/', django.urls.include('core.urls')),
5+
django.urls.path('api/ping/', django.urls.include('core.urls')),
66
django.urls.path('admin/', django.contrib.admin.site.urls),
77
]

0 commit comments

Comments
 (0)