[mezzanine-users] Re: Production server works only when DEBUG=True else it throws internal server error

2016-01-25 Thread Salar Rahmanian
http://stackoverflow.com/questions/4970489/what-could-cause-a-django-error-when-debug-false-that-isnt-there-when-debug-tru

On Sunday, January 24, 2016 at 12:02:48 PM UTC-5, Mani Kandan wrote:
>
> After deployment, the production server throws Internal server error.
> After I included DEBUG=True, It is working
> Can anyone help me in this?
>

-- 
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] 404 page with USE_I18N = True

2016-01-25 Thread dborisov86
Hi guys,

I have a site with USE_I18N = True and only one language - russian.
There is no language code in any url created by CMS and it is OK.
But when I try to get nonexistent page it redirects me to 404 page with 
language code. Why?
Here is a log:
[Mon Jan 25 18:38:11 2016] GET /sdasdasasdasda => generated 0 bytes in 66 
msecs (HTTP/1.1 301) 5 headers in 202 bytes (1 switches on core 0)
[Mon Jan 25 18:38:11 2016] GET /sdasdasasdasda/ => generated 0 bytes in 205 
msecs (HTTP/1.1 302) 3 headers in 125 bytes (1 switches on core 0)
[Mon Jan 25 18:38:11 2016] GET /ru/sdasdasasdasda/ => generated 7028 bytes 
in 137 msecs (HTTP/1.1 404) 4 headers in 131 bytes (1 switches on core 0)

Is there any way to avoid this behavior? I want to render 404 page without 
/ru component

Thnx.

-- 
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: EXTRA_MODELS_FIELDS broken with Django 1.8 ?

2016-01-25 Thread Salar Rahmanian
This post covers it:

http://bitofpixels.com/blog/upgrading-to-mezzanine-4/

On Monday, January 25, 2016 at 3:03:51 PM UTC-5, xBlake wrote:
>
> Hi,
>
> after an upgrade to Cartridge 0.11.0, Mezzanine 4.1.0 and Django 1.8.8 to 
> an existing project, migrations have stopped working.
> I'm getting following(like) errors about duplicate columns:
>
>
> *Applying shop.0001_initial... OKApplying 
> shop.0002_auto_20141227_1331...Traceback (most recent call last):*
>
> *…django.db.utils.OperationalError: duplicate column name: vat_id*
>
> I've simplified the issue as far as possible to:
>
> in project's settings.py
>
>
>
>
>
>
>
>
> *EXTRA_MODEL_FIELDS = ((
> 'cartridge.shop.models.ProductVariation.vat','ForeignKey',
> ('eshop.VAT',),{'null': True},),)*
>
> in eshop app's models.py
>
>
>
>
>
>
>
> *class VAT(models.Model):description = models.CharField(
> _('Description'), blank=False, null=True, unique=True,
> max_length=36)rate = models.DecimalField(_('Rate'), 
> blank=False, null=False,decimal_places=3, max_digits=3+6)*
> Both cartridge.shop and eshop migrations were generated anew with 
> manage.py makemigrations.
>
> Is this a known issue ?
>
> With Django 1.6 it does work without problems, however this version is no 
> longer supported since 04/2015 :(
>
>

-- 
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] Re: EXTRA_MODELS_FIELDS broken with Django 1.8 ?

2016-01-25 Thread Eduardo Rivas
That's a post about upgrading to Mezzanine 4.0. The issue described in the
original message is new and started with the recent release of Mezzanine
4.1. You can follow the progress here:
https://github.com/stephenmcd/mezzanine/issues/1513

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