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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
__pycache__
Binary file removed CryptoCurrencyApp/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file removed CryptoCurrencyApp/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file removed CryptoCurrencyApp/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion CryptoCurrencyApp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path

urlpatterns = [
path('helloworld/', include('helloworld.urls')),
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

```
python3.6 manage.py runserver
python3.6 manage.py migrate
```

http://127.0.0.1:8000/helloworld/
Binary file modified db.sqlite3
Binary file not shown.
Empty file added helloworld/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions helloworld/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions helloworld/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class HelloworldConfig(AppConfig):
name = 'helloworld'
Empty file.
3 changes: 3 additions & 0 deletions helloworld/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions helloworld/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
7 changes: 7 additions & 0 deletions helloworld/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path

from . import views

urlpatterns = [
path('', views.index, name='index'),
]
5 changes: 5 additions & 0 deletions helloworld/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.http import HttpResponse


def index(request):
return HttpResponse("helloworld")
Empty file added polls/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions polls/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions polls/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class PollsConfig(AppConfig):
name = 'polls'
Empty file added polls/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions polls/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions polls/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
7 changes: 7 additions & 0 deletions polls/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path

from . import views

urlpatterns = [
path('', views.index, name='index'),
]
5 changes: 5 additions & 0 deletions polls/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.http import HttpResponse


def index(request):
return HttpResponse("Hello, world. You're at the polls index.")