so we are in the same boat (at least now:P ) ok ..
(the comments are to short for me to post this ... hopefully helpful for someone )
(for people coming in and reading)
I have created a new page timedemo.html , which can contain any content, or without .
I edited urls.py
rlpatterns = patterns('',
url(r'^home/$', 'test.views.home', name='home'),
url(r'^pythondemo/$', 'test.views.pythondemo_view', name='pythondemo'),
url(r'^timedemo/$', 'test.views.timedemo_view', name='timedemo'),
)
With a simple yank and paste .
Restarted splunk. Trying to access my new app "test" .. only to get this;
404 Not Found
Return to Splunk home page
The path '/en-US/test/' was not found.
View more information about your request (request ID = 54edb5d1b47f93cc64a3d0) in Search
This page was linked to from http://10.0.1.21:8000/en-US/app/test/default.
Browsing / typing my old urls "home, pythondemo" from adressfield works fine.
When trying to browse my newly created page; timedemo .. this is what i get back;
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<response><messages><msg type="ERROR">INTERNAL SERVER ERROR</msg></messages></response>
in gjango_error.log i find;
Traceback (most recent call last): File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/handlers/base.py", line 103, in get_response resolver_match = resolver.resolve(request.path_info) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 321, in resolve sub_match = pattern.resolve(new_path) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 321, in resolve sub_match = pattern.resolve(new_path) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 321, in resolve sub_match = pattern.resolve(new_path) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 223, in resolve return ResolverMatch(self.callback, args, kwargs, self.name) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 230, in callback self._callback = get_callable(self._callback_str) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/utils/functional.py", line 31, in wrapper result = func(*args) File "/opt/splunk/dev/6.2.1/splunk/lib/python2.7/site-packages/django/core/urlresolvers.py", line 118, in get_callable (lookup_view, mod_name)) ViewDoesNotExist: Could not import test.views.timedemo_view. View does not exist in module test.views.
Could not import test.views.timedemo_view. View does not exist in module test.views.
So i set up some empty views in view.py and now i am not seing these messages anymore ... pain in the ass to have to this for all the pages / templats i setup.
Which seems to be necessary even if i am not doing anything special in the template ...
It seems to be some things i have not yet understoud regarding django.
... View more