changed signup to accounts
finished fixing linting
This commit is contained in:
parent
4ab42bf3de
commit
d8853cee1c
11 changed files with 13 additions and 12 deletions
5
accounts/apps.py
Normal file
5
accounts/apps.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class Accounts(AppConfig):
|
||||
name = 'accounts'
|
||||
|
|
@ -2,7 +2,7 @@ import os
|
|||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
TEMPLATES = [
|
||||
{
|
||||
'DIRS': [os.path.join(BASE_DIR, 'photo21/signup/templates')],
|
||||
'DIRS': [os.path.join(BASE_DIR, 'photo21/accounts/templates')],
|
||||
'APP_DIRS': True,
|
||||
},
|
||||
]
|
||||
|
|
@ -2,5 +2,5 @@ from django.urls import path
|
|||
|
||||
from .views import signup
|
||||
urlpatterns = [
|
||||
path('', signup, name='signup'),
|
||||
path('', signup, name='accounts'),
|
||||
]
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
from django.http import HttpResponseRedirect
|
||||
from django.conf import settings
|
||||
|
||||
import ipaddress
|
||||
import re
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.staticfiles',
|
||||
'photologue_custom',
|
||||
'photologue',
|
||||
'signup',
|
||||
'accounts',
|
||||
'sortedm2m',
|
||||
'taggit',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ from django.contrib import admin
|
|||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
from .views import IndexView
|
||||
|
||||
|
|
@ -30,7 +29,7 @@ urlpatterns = [
|
|||
path('i18n/', include('django.conf.urls.i18n')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('accounts/signup/', include('signup.urls'))
|
||||
path('accounts/registration/', include('accounts.urls'))
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Signup(AppConfig):
|
||||
name = 'signup'
|
||||
4
tox.ini
4
tox.ini
|
|
@ -18,7 +18,7 @@ deps =
|
|||
-r{toxinidir}/requirements.txt
|
||||
coverage
|
||||
commands =
|
||||
coverage run --omit='photo21/wsgi.py' --source=photo21,photologue_custom ./manage.py test
|
||||
coverage run --omit='photo21/wsgi.py' --source=photo21,photologue_custom,accounts ./manage.py test
|
||||
coverage report -m
|
||||
|
||||
[testenv:linters]
|
||||
|
|
@ -32,7 +32,7 @@ deps =
|
|||
pep8-naming
|
||||
pyflakes
|
||||
commands =
|
||||
flake8 photo21 photologue_custom
|
||||
flake8 photo21 photologue_custom accounts
|
||||
|
||||
[flake8]
|
||||
ignore = W503, I100, I101
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue