Re: [mezzanine-users] Re: Can't get gallery to work with existing django project

2017-02-13 Thread Stephen McDonald
You didn't post the error.

On Tue, Feb 14, 2017 at 4:35 AM, Bernardo Tavares  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-users+unsubscr...@googlegroups.com.
> 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.


Re: [mezzanine-users] Contact Form Error

2017-02-13 Thread Richard Jackson
OK thank you - I don't believe anything's been set up explicitly so I'll
take a look into it. Really appreciate your time on this.

Rich

On Mon, Feb 13, 2017 at 7:21 PM, Iain Mac Donald  wrote:

> On Mon, 13 Feb 2017 10:46:53 -0800 (PST)
> Richard Jackson  wrote:
>
> > I started looking into these and will keep doing so in the next few
> > days. How would SMPT server settings be configured in Django/Mez?
>
> https://docs.djangoproject.com/en/1.10/topics/email/
>
>
> . Does this sound like an SMPT issue?
>
> The very last line of your traceback suggests a connection error (host
> port timeout). SMTP not running? Authentication error?
>
> If you haven't explicitly set the SMTP server it probably defaults to
> localhost.
>
> --
>
> Regards,
> Iain.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/mezzanine-users/SH46jnSkr3o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Freelance Composer - Richard Jackson Music
Email: r...@richardjacksonmusic.com
Site: www.richardjacksonmusic.com
Twitter: @rjmusic87

-- 
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.


[mezzanine-users] Re: Can't get gallery to work with existing django project

2017-02-13 Thread Bernardo Tavares


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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Can't get gallery to work with existing django project

2017-02-13 Thread Bernardo Tavares
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.

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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Contact Form Error

2017-02-13 Thread Richard Jackson
Much obliged, I'll check these tonight.

Rich

On Mon, 13 Feb 2017 at 13:36, Iain Mac Donald 
wrote:

> On Mon, 13 Feb 2017 12:28:50 +
> Richard Jackson  wrote:
>
> > What's the best way to
> > test that?
>
> Python, system utility like mailx or you could communicate directly
> using telnet:
>
> https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/
>
> MTAs all have means of test routing too.
>
> I guess you need to set these to something sensible:
> SERVER_EMAIL
> DEFAULT_FROM_EMAIL
>
> --
>
> Regards,
> Iain.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/SH46jnSkr3o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Freelance Composer - Richard Jackson Music
Email: r...@richardjacksonmusic.com
Site: www.richardjacksonmusic.com
Twitter: @rjmusic87

-- 
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.


Re: [mezzanine-users] Contact Form Error

2017-02-13 Thread Iain Mac Donald
On Mon, 13 Feb 2017 12:28:50 +
Richard Jackson  wrote:

> What's the best way to
> test that?

Python, system utility like mailx or you could communicate directly
using telnet:
https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/

MTAs all have means of test routing too.

I guess you need to set these to something sensible:
SERVER_EMAIL
DEFAULT_FROM_EMAIL

-- 

Regards,
Iain.

-- 
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.


Re: [mezzanine-users] Contact Form Error

2017-02-13 Thread Richard Jackson
Hi Iain,

I'm at work atm but will check as soon as I'm home. What's the best way to
test that?

Thanks,

Rich

On Mon, 13 Feb 2017 at 10:46, Iain Mac Donald 
wrote:

> On Mon, 13 Feb 2017 01:38:42 -0800 (PST)
> Richard Jackson  wrote:
>
> > Exception Value: [Errno 111] Connection refused
>
> Can you access the SMTP server?
>
> --
>
> Regards,
> Iain.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/SH46jnSkr3o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.


Re: [mezzanine-users] Contact Form Error

2017-02-13 Thread Iain Mac Donald
On Mon, 13 Feb 2017 01:38:42 -0800 (PST)
Richard Jackson  wrote:

> Exception Value: [Errno 111] Connection refused

Can you access the SMTP server?

-- 

Regards,
Iain.

-- 
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.


[mezzanine-users] Contact Form Error

2017-02-13 Thread Richard Jackson
Hi everyone,

I'm getting the following traceback error when I try to submit a form 
(/contact) - it's been affecting my live site for a while, and here's the 
error when it's done locally. Any thoughts?

Thanks,

Rich

Environment:


Request Method: POST
Request URL: http://127.0.0.1:8000/contact/

Django Version: 1.8.4
Python Version: 2.7.6
Installed Applications:
(u'mezzanine.boot',
 u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.redirects',
 u'django.contrib.sessions',
 u'django.contrib.sites',
 u'django.contrib.sitemaps',
 u'vital_theme',
 u'mezzanine.conf',
 u'mezzanine.core',
 u'mezzanine.generic',
 u'mezzanine.pages',
 u'mezzanine.blog',
 u'mezzanine.forms',
 u'mezzanine.galleries',
 u'mezzanine.twitter',
 u'mezzanine.accounts',
 u'debug_toolbar',
 u'filebrowser_safe',
 u'grappelli_safe',
 u'django.contrib.admin',
 u'django.contrib.staticfiles',
 u'django_comments')
Installed Middleware:
(u'django.contrib.sessions.middleware.SessionMiddleware',
 u'django.middleware.common.CommonMiddleware',
 u'django.middleware.csrf.CsrfViewMiddleware',
 u'django.contrib.auth.middleware.AuthenticationMiddleware',
 u'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 u'django.contrib.messages.middleware.MessageMiddleware',
 u'django.middleware.clickjacking.XFrameOptionsMiddleware',
 u'mezzanine.core.request.CurrentRequestMiddleware',
 u'mezzanine.core.middleware.RedirectFallbackMiddleware',
 u'mezzanine.core.middleware.TemplateForDeviceMiddleware',
 u'mezzanine.core.middleware.TemplateForHostMiddleware',
 u'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware',
 u'mezzanine.core.middleware.SitePermissionMiddleware',
 u'mezzanine.pages.middleware.PageMiddleware',
 u'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/django/core/handlers/base.py"
 
in get_response
  125. response = middleware_method(request, callback, 
callback_args, callback_kwargs)
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/mezzanine/pages/middleware.py"
 
in process_view
  111. processor_response = processor(request, page)
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/mezzanine/forms/page_processors.py"
 
in form_processor
  64.attachments=attachments, 
headers=headers)
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/mezzanine/utils/email.py"
 
in send_mail_template
  66. msg.send(fail_silently=fail_silently)
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/django/core/mail/message.py"
 
in send
  303. return 
self.get_connection(fail_silently).send_messages([self])
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py"
 
in send_messages
  100. new_conn_created = self.open()
File 
"/home/majora/.virtualenvs/richardjackson/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py"
 
in open
  58. self.connection = connection_class(self.host, self.port, 
**connection_params)
File "/usr/lib/python2.7/smtplib.py" in __init__
  256. (code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py" in connect
  316. self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python2.7/smtplib.py" in _get_socket
  291. return socket.create_connection((host, port), timeout)
File "/usr/lib/python2.7/socket.py" in create_connection
  571. raise err

Exception Type: error at /contact/
Exception Value: [Errno 111] Connection refused



-- 
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.