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
Binary file added db.sqlite3
Binary file not shown.
Binary file added woid/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added woid/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added woid/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
Binary file added woid/apps/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file added woid/apps/accounts/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file added woid/apps/core/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added woid/apps/core/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file added woid/apps/core/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added woid/apps/services/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added woid/apps/services/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added woid/apps/services/__pycache__/utils.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions woid/apps/services/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.contrib import admin
from . import models

admin.site.register(models.Service)
admin.site.register(models.Story)
admin.site.register(models.StoryUpdate)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added woid/settings/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added woid/settings/__pycache__/base.cpython-36.pyc
Binary file not shown.
Binary file added woid/settings/__pycache__/dev.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion woid/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',

'django.contrib.admin' ,
'woid.apps.accounts',
'woid.apps.core',
'woid.apps.services',
Expand Down
11 changes: 6 additions & 5 deletions woid/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
from django.contrib.auth.forms import UserCreationForm
from django.urls import include, path
from django.views.generic import TemplateView
from django.views.generic.edit import CreateView

from django.views.generic.edit import CreateView , FormView
from django.contrib import admin
from woid.apps.core import views as core_views
from woid.apps.services import views as services_views

urlpatterns = [
path('', services_views.front_page, name='front_page'),
path('login/', auth_views.LoginView.as_view(), name='login'),
path('logout/', auth_views.LogoutView.as_view(next_page='/'), name='logout'),
path('signup/', CreateView.as_view(template_name='registration/signup.html',
path('admin/' , admin.site.urls) ,
path('login/', auth_views.LoginView.as_view(), name='login' ),
path('logout/', auth_views.LogoutView.as_view(next_page= 'front_page'), name='logout'),
path('signup/', FormView.as_view(template_name='registration/signup.html',
form_class=UserCreationForm,
success_url='/'), name='signup'),
path('about/', TemplateView.as_view(template_name='core/about.html'), name='about'),
Expand Down