diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000..dc9555a Binary files /dev/null and b/db.sqlite3 differ diff --git a/woid/__pycache__/__init__.cpython-36.pyc b/woid/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..3880e7d Binary files /dev/null and b/woid/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/__pycache__/urls.cpython-36.pyc b/woid/__pycache__/urls.cpython-36.pyc new file mode 100644 index 0000000..50f2f89 Binary files /dev/null and b/woid/__pycache__/urls.cpython-36.pyc differ diff --git a/woid/__pycache__/wsgi.cpython-36.pyc b/woid/__pycache__/wsgi.cpython-36.pyc new file mode 100644 index 0000000..49cb8f2 Binary files /dev/null and b/woid/__pycache__/wsgi.cpython-36.pyc differ diff --git a/woid/apps/__pycache__/__init__.cpython-36.pyc b/woid/apps/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..d2eb651 Binary files /dev/null and b/woid/apps/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/accounts/__pycache__/__init__.cpython-36.pyc b/woid/apps/accounts/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..96bec91 Binary files /dev/null and b/woid/apps/accounts/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/accounts/__pycache__/models.cpython-36.pyc b/woid/apps/accounts/__pycache__/models.cpython-36.pyc new file mode 100644 index 0000000..2bb1421 Binary files /dev/null and b/woid/apps/accounts/__pycache__/models.cpython-36.pyc differ diff --git a/woid/apps/accounts/migrations/__pycache__/__init__.cpython-36.pyc b/woid/apps/accounts/migrations/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..6b0c29d Binary files /dev/null and b/woid/apps/accounts/migrations/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/core/__pycache__/__init__.cpython-36.pyc b/woid/apps/core/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..8076fbc Binary files /dev/null and b/woid/apps/core/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/core/__pycache__/models.cpython-36.pyc b/woid/apps/core/__pycache__/models.cpython-36.pyc new file mode 100644 index 0000000..8d0f0a9 Binary files /dev/null and b/woid/apps/core/__pycache__/models.cpython-36.pyc differ diff --git a/woid/apps/core/__pycache__/views.cpython-36.pyc b/woid/apps/core/__pycache__/views.cpython-36.pyc new file mode 100644 index 0000000..dd58387 Binary files /dev/null and b/woid/apps/core/__pycache__/views.cpython-36.pyc differ diff --git a/woid/apps/core/migrations/__pycache__/__init__.cpython-36.pyc b/woid/apps/core/migrations/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..3c23e4a Binary files /dev/null and b/woid/apps/core/migrations/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/core/templatetags/__pycache__/__init__.cpython-36.pyc b/woid/apps/core/templatetags/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..8a0fa71 Binary files /dev/null and b/woid/apps/core/templatetags/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/core/templatetags/__pycache__/startswith.cpython-36.pyc b/woid/apps/core/templatetags/__pycache__/startswith.cpython-36.pyc new file mode 100644 index 0000000..9b56c9a Binary files /dev/null and b/woid/apps/core/templatetags/__pycache__/startswith.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/__init__.cpython-36.pyc b/woid/apps/services/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..7f7ba06 Binary files /dev/null and b/woid/apps/services/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/admin.cpython-36.pyc b/woid/apps/services/__pycache__/admin.cpython-36.pyc new file mode 100644 index 0000000..c769ac3 Binary files /dev/null and b/woid/apps/services/__pycache__/admin.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/context_processors.cpython-36.pyc b/woid/apps/services/__pycache__/context_processors.cpython-36.pyc new file mode 100644 index 0000000..c51374e Binary files /dev/null and b/woid/apps/services/__pycache__/context_processors.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/crawlers.cpython-36.pyc b/woid/apps/services/__pycache__/crawlers.cpython-36.pyc new file mode 100644 index 0000000..6e14c7b Binary files /dev/null and b/woid/apps/services/__pycache__/crawlers.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/models.cpython-36.pyc b/woid/apps/services/__pycache__/models.cpython-36.pyc new file mode 100644 index 0000000..d37dc99 Binary files /dev/null and b/woid/apps/services/__pycache__/models.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/urls.cpython-36.pyc b/woid/apps/services/__pycache__/urls.cpython-36.pyc new file mode 100644 index 0000000..b4faabc Binary files /dev/null and b/woid/apps/services/__pycache__/urls.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/utils.cpython-36.pyc b/woid/apps/services/__pycache__/utils.cpython-36.pyc new file mode 100644 index 0000000..6071be7 Binary files /dev/null and b/woid/apps/services/__pycache__/utils.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/views.cpython-36.pyc b/woid/apps/services/__pycache__/views.cpython-36.pyc new file mode 100644 index 0000000..da026f3 Binary files /dev/null and b/woid/apps/services/__pycache__/views.cpython-36.pyc differ diff --git a/woid/apps/services/__pycache__/wrappers.cpython-36.pyc b/woid/apps/services/__pycache__/wrappers.cpython-36.pyc new file mode 100644 index 0000000..3584794 Binary files /dev/null and b/woid/apps/services/__pycache__/wrappers.cpython-36.pyc differ diff --git a/woid/apps/services/admin.py b/woid/apps/services/admin.py new file mode 100644 index 0000000..38d7dc7 --- /dev/null +++ b/woid/apps/services/admin.py @@ -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) diff --git a/woid/apps/services/management/__pycache__/__init__.cpython-36.pyc b/woid/apps/services/management/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..08df7d9 Binary files /dev/null and b/woid/apps/services/management/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/services/management/commands/__pycache__/__init__.cpython-36.pyc b/woid/apps/services/management/commands/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..c08d6c4 Binary files /dev/null and b/woid/apps/services/management/commands/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/services/management/commands/__pycache__/crawl.cpython-36.pyc b/woid/apps/services/management/commands/__pycache__/crawl.cpython-36.pyc new file mode 100644 index 0000000..e95ab05 Binary files /dev/null and b/woid/apps/services/management/commands/__pycache__/crawl.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0001_initial.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0001_initial.cpython-36.pyc new file mode 100644 index 0000000..e949838 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0001_initial.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0002_auto_20150829_1445.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0002_auto_20150829_1445.cpython-36.pyc new file mode 100644 index 0000000..a83966c Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0002_auto_20150829_1445.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0003_auto_20150830_1559.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0003_auto_20150830_1559.cpython-36.pyc new file mode 100644 index 0000000..163e3cd Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0003_auto_20150830_1559.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0004_story_top_ten.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0004_story_top_ten.cpython-36.pyc new file mode 100644 index 0000000..b2d017c Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0004_story_top_ten.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0005_auto_20150901_1253.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0005_auto_20150901_1253.cpython-36.pyc new file mode 100644 index 0000000..d5a2173 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0005_auto_20150901_1253.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0006_auto_20150902_1522.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0006_auto_20150902_1522.cpython-36.pyc new file mode 100644 index 0000000..14b03e0 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0006_auto_20150902_1522.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0007_story_nsfw.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0007_story_nsfw.cpython-36.pyc new file mode 100644 index 0000000..a039295 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0007_story_nsfw.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0008_story_description.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0008_story_description.cpython-36.pyc new file mode 100644 index 0000000..02a77f1 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0008_story_description.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0009_auto_20150902_2137.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0009_auto_20150902_2137.cpython-36.pyc new file mode 100644 index 0000000..c291fd0 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0009_auto_20150902_2137.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0010_service_short_name.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0010_service_short_name.cpython-36.pyc new file mode 100644 index 0000000..8a09863 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0010_service_short_name.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0011_remove_service_short_name.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0011_remove_service_short_name.cpython-36.pyc new file mode 100644 index 0000000..77f088d Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0011_remove_service_short_name.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0012_auto_20151117_0952.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0012_auto_20151117_0952.cpython-36.pyc new file mode 100644 index 0000000..80b46dd Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0012_auto_20151117_0952.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0013_auto_20151117_1205.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0013_auto_20151117_1205.cpython-36.pyc new file mode 100644 index 0000000..9a9bc23 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0013_auto_20151117_1205.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0014_auto_20160715_1202.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0014_auto_20160715_1202.cpython-36.pyc new file mode 100644 index 0000000..a62b82b Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0014_auto_20160715_1202.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0015_auto_20190109_0805.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0015_auto_20190109_0805.cpython-36.pyc new file mode 100644 index 0000000..8b1f6de Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0015_auto_20190109_0805.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0016_remove_medium.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0016_remove_medium.cpython-36.pyc new file mode 100644 index 0000000..2e768f7 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0016_remove_medium.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/0017_auto_20190109_1956.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/0017_auto_20190109_1956.cpython-36.pyc new file mode 100644 index 0000000..c00ef41 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/0017_auto_20190109_1956.cpython-36.pyc differ diff --git a/woid/apps/services/migrations/__pycache__/__init__.cpython-36.pyc b/woid/apps/services/migrations/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..ca8a6c5 Binary files /dev/null and b/woid/apps/services/migrations/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/services/templatetags/__pycache__/__init__.cpython-36.pyc b/woid/apps/services/templatetags/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..11e25c9 Binary files /dev/null and b/woid/apps/services/templatetags/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/apps/services/templatetags/__pycache__/calendar_helpers.cpython-36.pyc b/woid/apps/services/templatetags/__pycache__/calendar_helpers.cpython-36.pyc new file mode 100644 index 0000000..5ac6d63 Binary files /dev/null and b/woid/apps/services/templatetags/__pycache__/calendar_helpers.cpython-36.pyc differ diff --git a/woid/apps/services/templatetags/__pycache__/github_title.cpython-36.pyc b/woid/apps/services/templatetags/__pycache__/github_title.cpython-36.pyc new file mode 100644 index 0000000..6ed94ff Binary files /dev/null and b/woid/apps/services/templatetags/__pycache__/github_title.cpython-36.pyc differ diff --git a/woid/apps/services/templatetags/__pycache__/services_url.cpython-36.pyc b/woid/apps/services/templatetags/__pycache__/services_url.cpython-36.pyc new file mode 100644 index 0000000..4c7eff1 Binary files /dev/null and b/woid/apps/services/templatetags/__pycache__/services_url.cpython-36.pyc differ diff --git a/woid/settings/__pycache__/__init__.cpython-36.pyc b/woid/settings/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..faae64c Binary files /dev/null and b/woid/settings/__pycache__/__init__.cpython-36.pyc differ diff --git a/woid/settings/__pycache__/base.cpython-36.pyc b/woid/settings/__pycache__/base.cpython-36.pyc new file mode 100644 index 0000000..d272673 Binary files /dev/null and b/woid/settings/__pycache__/base.cpython-36.pyc differ diff --git a/woid/settings/__pycache__/dev.cpython-36.pyc b/woid/settings/__pycache__/dev.cpython-36.pyc new file mode 100644 index 0000000..82548d4 Binary files /dev/null and b/woid/settings/__pycache__/dev.cpython-36.pyc differ diff --git a/woid/settings/base.py b/woid/settings/base.py index 5d77074..9144f0c 100644 --- a/woid/settings/base.py +++ b/woid/settings/base.py @@ -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', diff --git a/woid/urls.py b/woid/urls.py index c685710..b6f8d3a 100644 --- a/woid/urls.py +++ b/woid/urls.py @@ -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'),