2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 00:31:55 +00:00

Dj1.11.29 running - trimmed unneeded packages

This commit is contained in:
Philip Sargent 2021-03-17 21:09:44 +00:00
parent 6ac65cf893
commit 314f600523
5 changed files with 6 additions and 20 deletions

View File

@ -134,6 +134,7 @@ from within any folder on your machine.
Now do
$ cd troggle
$ python manage.py
$ python manage.py check -v 3 --traceback
You should see the same list of commands that you saw with django-admin but wth
a lot of extra ones and no complaints. This means it is reading at least some of your

View File

@ -4,16 +4,3 @@
from collections import Counter, Iterator, Mapping, OrderedDict
/mnt/d/CUCC-Expo/t37/lib/python3.7/site-packages/django/core/paginator.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
class Page(collections.Sequence):
/mnt/d/CUCC-Expo/t37/lib/python3.7/site-packages/registration/auth_urls_classes.py:20: DeprecationWarning:
include('registration.auth_urls') is deprecated and will be
removed in django-registration 3.0. Use
include('django.contrib.auth.urls') instead.
DeprecationWarning
/mnt/d/CUCC-Expo/t37/lib/python3.7/site-packages/registration/backends/default/urls.py:25: DeprecationWarning:
include('registration.backends.default.urls') is deprecated and
will be removed in django-registration 3.0. Use
include('registration.backends.model_activation.urls')
instead.
DeprecationWarning

View File

@ -2,11 +2,11 @@
import os
import sys
"""This file is the route to run the standard Django utilities on the command line.
These ar ethe most useful for troggle:
These are the most useful for troggle:
python manage.py test -- runs the troggle test suite
python manage.py test -v 3 -- runs the troggle test suite with more detailed output
python manage.py -Wall check -- runs the djang system package deprecation warnings
python -Wall manage.py check -- runs the python package deprecation warnings
python manage.py makemigrations -- creates django db migrations files
python manage.py inspectdb -- creates datamodel documentaiton as python file
python manage.py check -v 3 --deploy -- runs the django system security warnings

View File

@ -2,8 +2,6 @@ confusable-homoglyphs==3.2.0
Django==1.11.29
django-registration==2.5.2
docutils==0.16
Pillow==7.1.2
Pillow==7.2.0
pytz==2020.1
six==1.15.0
sqlparse==0.3.1
Unidecode==1.1.1

View File

@ -26,7 +26,7 @@ which is vital to writing code for the webapp. So the URL dispatch is declarativ
The API urls return TSV or JSON and are new in July 2020.
"""
admin.autodiscover()
#admin.autodiscover()
# Many of these patterns do not work because troggle spent many years broken and we have
# not yet restored all the functions. Some may have never been fully implemented in
@ -93,7 +93,7 @@ actualurlpatterns = [
url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/).
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('registration.backends.default.urls')), # needed to log in!
url(r'^accounts/', include('registration.backends.default.urls')), #LOGIN_URL = '/accounts/login/' # default
# url(r'^profiles/', include('profiles.urls')), # not used ? Delete this entire app then.
# url(r'^map/', .........), # Intercepted by Apache. Yields OpenStreetMap. Redirects to expoweb/map