No I hadnt. I did so now, and got a few errors:
joel@hp:~/myappointments$ python3 manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
/home/joel/myappointments/appointments/static
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/base.py",
line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/base.py",
line 353, in execute
output = self.handle(*args, **options)
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 188, in handle
collected = self.collect()
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 105, in collect
for path, storage in finder.list(self.ignore_patterns):
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py",
line 125, in list
for path in utils.get_files(storage, ignore_patterns):
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py",
line 23, in get_files
directories, files = storage.listdir(location)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/files/storage.py",
line 313, in listdir
for entry in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory:
'/home/joel/myappointments/static'
Sentry is attempting to send 1 pending error messages
Waiting up to 2.0 seconds
Press Ctrl-C to quit
joel@hp:~/myappointments$ mkdir /home/joel/myappointments/static
joel@hp:~/myappointments$ python3 manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
/home/joel/myappointments/appointments/static
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/base.py",
line 316, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/base.py",
line 353, in execute
output = self.handle(*args, **options)
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 188, in handle
collected = self.collect()
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 114, in collect
handler(path, prefixed_path, storage)
File "/home/joel/.local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 352, in copy_file
with source_storage.open(path) as source_file:
File "/home/joel/.local/lib/python3.6/site-packages/django/core/files/storage.py",
line 33, in open
return self._open(name, mode)
File "/home/joel/.local/lib/python3.6/site-packages/django/core/files/storage.py",
line 218, in _open
return File(open(self.path(name), mode))
FileNotFoundError: [Errno 2] No such file or directory:
'/home/joel/myappointments/METADATA'
Sentry is attempting to send 1 pending error messages
Waiting up to 2.0 seconds
Press Ctrl-C to quit
joel@hp:~/myappointments$
How should I choose location? My apps are appointments, and clinic
The project name is myappointments
Sincerely yours,
Joel G Mathew
On Sat, 3 Nov 2018 at 00:54, Matthew Pava <Matthew.Pava@iss.com> wrote:
>
> Did you run collectstatic?
>
>
> -----Original Message-----
> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Joel Mathew
> Sent: Friday, November 2, 2018 2:19 PM
> To: django-users@googlegroups.com
> Subject: Turning DEBUG=True causes a tornado of Error 500s
>
> When I turned DEBUG = False in my project/settings.py, I suddenly got
> a whole bunch of HTTP Error 500. Most of the css reources showed the
> error. I have two apps in this project, and I've been sharing static
> resources between these apps. Would these be the cause of these
> errors?
>
> See the following with DEBUG=True:
> ================================================
> joel@hp:~/myappointments$ python3 manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> November 03, 2018 - 00:46:23
> Django version 2.1.2, using settings 'myappointments.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
> In livelist for clinic: joelent
> Checking for membership
> In HasMembership function.
> In IsMemberof function.. Got arguments: cliniclabel:joelent username:joel
> permobj.viewperms: 1
> Verified that ... is a member of joelent
> Username is ...
> Showhelp for Joel G Mathew is False
> [03/Nov/2018 00:46:27] "GET /clinic/joelent/live HTTP/1.1" 200 19802
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/appointments/css/calcustomcolors.css?dev=82444302
> HTTP/1.1" 200 246
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/appointments/css/mytheme.css?dev=82444302
> HTTP/1.1" 200 884
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/clinic/css/colorbuttons.css?dev=82444302
> HTTP/1.1" 200 3596
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/appointments/js/search.js?dev=82444302 HTTP/1.1"
> 200 6554
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82444302
> HTTP/1.1" 200 520714
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/appointments/js/appointment.js?dev=82444302
> HTTP/1.1" 200 17716
> [03/Nov/2018 00:46:27] "GET
> /appointments/static/clinic/icons/favicon.ico HTTP/1.1" 200 311737
>
>
> ================================================
>
> And now with DEBUG = False:
>
> python3 manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> November 03, 2018 - 00:47:39
> Django version 2.1.2, using settings 'myappointments.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
> In livelist for clinic: joelent
> Checking for membership
> In HasMembership function.
> In IsMemberof function.. Got arguments: cliniclabel:joelent username:joel
> permobj.viewperms: 1
> Verified that ... is a member of joelent
> Username is ....
> Showhelp for Joel G Mathew is False
> [03/Nov/2018 00:47:44] "GET /clinic/joelent/live HTTP/1.1" 200 19802
> 2018-11-03 00:47:44,523 django.request ERROR Internal Server Error:
> /appointments/static/clinic/css/colorbuttons.css
> 2018-11-03 00:47:44,525 django.request ERROR Internal Server Error:
> /appointments/static/appointments/css/calcustomcolors.css
> 2018-11-03 00:47:44,532 django.request ERROR Internal Server Error:
> /appointments/static/appointments/css/mytheme.css
> 2018-11-03 00:47:44,562 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/jquery-ui/jquery-ui.js
> 2018-11-03 00:47:44,567 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/search.js
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/css/mytheme.css?dev=82846267
> HTTP/1.1" 500 27
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/css/calcustomcolors.css?dev=82846267
> HTTP/1.1" 500 27
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/clinic/css/colorbuttons.css?dev=82846267
> HTTP/1.1" 500 27
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/search.js?dev=82846267 HTTP/1.1"
> 500 27
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82846267
> HTTP/1.1" 500 27
> 2018-11-03 00:47:44,632 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/appointment.js
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/appointment.js?dev=82846267
> HTTP/1.1" 500 27
> 2018-11-03 00:47:44,697 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/jquery-ui/jquery-ui.js
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82846267
> HTTP/1.1" 500 27
> 2018-11-03 00:47:44,849 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/search.js
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/search.js?dev=82846267 HTTP/1.1"
> 500 27
> 2018-11-03 00:47:44,875 django.request ERROR Internal Server Error:
> /appointments/static/appointments/js/appointment.js
> [03/Nov/2018 00:47:44] "GET
> /appointments/static/appointments/js/appointment.js?dev=82846267
> HTTP/1.1" 500 27
> 2018-11-03 00:47:45,152 django.request ERROR Internal Server Error:
> /appointments/static/clinic/icons/favicon.ico
> [03/Nov/2018 00:47:45] "GET
> /appointments/static/clinic/icons/favicon.ico HTTP/1.1" 500 27
>
>
> Sincerely yours,
>
> Joel G Mathew
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_-MbkumM6MT4vzNjmT3CTRgfO4krqY%3D%2BQWBx%2BiG-VL_Xw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5561a21d842e45cba6ae149e9ef83d37%40iss2.ISS.LOCAL.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_9ymBpbpc0Gukijh-1MKaGGDKC_1qDfpFhzO9qFuDDsgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment