Sorry, I get a page 404 error when importing all urls from mezzanine. 
"http://127.0.0.1:8000/blog/"; 
works fine.

Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/gallery/
Raised by: mezzanine.pages.views.page



Em segunda-feira, 13 de fevereiro de 2017 21:15:50 UTC-2, Stephen McDonald 
escreveu:
>
> You didn't post the error.
>
> On Tue, Feb 14, 2017 at 4:35 AM, Bernardo Tavares <bhd...@gmail.com 
> <javascript:>> wrote:
>
>>
>>
>> Em segunda-feira, 13 de fevereiro de 2017 15:32:46 UTC-2, Bernardo 
>> Tavares escreveu:
>>>
>>> Hi,
>>>
>>> I'm trying to plug in mezzanine's blog and gallery system into and 
>>> existing website. After pluging in 'mezzanine.urls', the blog worked like a 
>>> charm, but i can't get the gallery to work. I can't seem to find the 
>>> configuration for the '/gallery/' url either.
>>>
>>
>>  
>> I'm getting the following error when trying to access the url:
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/gallery/
>> Raised by: mezzanine.pages.views.page
>>
>>
>>  
>>
>>> Here is my main 'urls.py' file:
>>>
>>> from django.conf.urls import include, url
>>> from django.contrib import admin
>>> from main import urls as mainUrls
>>> import mezzanine.urls as mezzanineUrls
>>>
>>> urlpatterns = (
>>>     url(r'^', include(mainUrls)),
>>>     url(r'^', include(mezzanineUrls)),
>>>     url(r'^admin/', include(admin.site.urls)),
>>> )
>>>
>>>
>>> Here is my installed apps:
>>>
>>> INSTALLED_APPS = (
>>>     "django.contrib.admin",
>>>     "django.contrib.auth",
>>>     "django.contrib.contenttypes",
>>>     "django.contrib.redirects",
>>>     "django.contrib.sessions",
>>>     "django.contrib.sites",
>>>     "django.contrib.sitemaps",
>>>     "django.contrib.staticfiles",
>>>     "django.contrib.messages",
>>>     'main',
>>>     'custom_mezzanine',
>>>     "mezzanine.boot",
>>>     "mezzanine.conf",
>>>     "mezzanine.core",
>>>     "mezzanine.generic",
>>>     "mezzanine.pages",
>>>     "mezzanine.blog",
>>>     "mezzanine.forms",
>>>     "mezzanine.galleries",
>>>     #"mezzanine.twitter",
>>>     # "mezzanine.accounts",
>>>     # "mezzanine.mobile",
>>>     'parsley',
>>>     'django_comments',
>>> )
>>>
>>> And i added some settings from mezzanine's start-project:
>>>
>>> #Weird-mezzanine-conf
>>> # Store these package names here as they may change in the future since
>>> # at the moment we are using custom forks of them.
>>> PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
>>> PACKAGE_NAME_GRAPPELLI = "grappelli_safe"
>>> OPTIONAL_APPS = (
>>>     "debug_toolbar",
>>>     "django_extensions",
>>>     "compressor",
>>>     PACKAGE_NAME_FILEBROWSER,
>>>     PACKAGE_NAME_GRAPPELLI,
>>> )
>>> SITE_ID = 1
>>> COMMENTS_DISQUS_API_SECRET_KEY = 'xxx'
>>> COMMENTS_DISQUS_SHORTNAME = 'xxx'
>>>
>>>
>>> try:
>>>     from mezzanine.utils.conf import set_dynamic_settings
>>> except ImportError:
>>>     pass
>>> else:
>>>     set_dynamic_settings(globals())
>>>
>>> I'm several hours stuck with this problem and would be glad if someone 
>>> could help me. Thanks
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to