[mezzanine-users] Changing order status choices triggers a migration

2015-11-03 Thread Chris Trengove
In Cartridge's Order model, the status field has its choices set to the 
value of SHOP_ORDER_STATUS_CHOICES, which is available for customization in 
the project settings.py module. But with the new Django migrations, editing 
this setting triggers a migration, which of course is then stored in 
Cartridge's migrations directory.

Does anyone have any suggestions as to how this might be avoided?

-- 
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: Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Geoff P
If anyone ends up here with a similar issue, I think the problem was in 
settings.py 
In DATABASES, ENGINE and NAME were empty. I changed the settings 
accordingly, migrated, and it worked. 

DATABASES = {
"default": {
# Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.sqlite3",
# DB name or path to database file if using sqlite3.
"NAME": "database.sqlite",
# Not used with sqlite3.
"USER": "",
# Not used with sqlite3.
"PASSWORD": "",
# Set to empty string for localhost. Not used with sqlite3.
"HOST": "",
# Set to empty string for default. Not used with sqlite3.
"PORT": "",
}
}




-- 
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: Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Geoff P
Yes.

On Tuesday, November 3, 2015 at 7:32:36 PM UTC-8, Eduardo Rivas wrote:
>
> Have you created an application folder for your models and migrations? 
> Have you added said application to INSTALLED_APPS in settings.py? 
>

-- 
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: Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Eduardo Rivas
Have you created an application folder for your models and migrations? 
Have you added said application to INSTALLED_APPS in settings.py?


--
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: Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Geoff P
An update. I noticed that I didn't have a migrations folder in my project. 
Isn't this supposed to be written automatically? I added one and put an 
__init__.py file in it and now I don't get the "No changes detected" and 
 "No migrations to apply". But I still get the same error in the browser. 
Still trying to figure it out.
 

-- 
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] Running migrations I get message that says "No changes detected", "No migrations to apply"

2015-11-03 Thread Geoff P
Hello, I'm working on a theme (specifically models for the custom home 
page) and running into an issue. I think I'm having a migration problem but 
I'm not sure. I updated my model, and when I run makemigrations I get "No 
changes detected". When I run migrate I get "No migrations to apply". 
Testing in the browser, with the edited model, gives this error: 
Operational Error at /. The exception value is *no such column: 
themename_homepage.paragraph_heading*

I wrote this code initially, ran makemigrations and migrate and it works:
from django.db import models
from django.utils.translation import ugettext_lazy as _

#Create your models here.
from mezzanine.core.fields import RichTextField
from mezzanine.core.models import RichText
from mezzanine.pages.models import Page


class HomePage(Page, RichText):

paragraph_blurb = models.CharField(max_length = 600, help_text = 'Paragraph 
under the heading', default = 'This is a test. I am a robot. Please write 
up to 600 characters here.')

class Meta:
verbose_name = _('Home Page')
verbose_name_plural = _('Home Pages')

But when I add this to the HomePage class:
paragraph_heading = models.CharField(max_length = 60, help_text = 'Heading 
under the slide show.', default = 'Write a heading.')
which is meant to be a simple heading, I get the errors as explained above 
after trying to do migrations again. Any ideas what I could be doing wrong? 
And what can I look at to test? By the way I'm using the default server on 
my local machine, and SQLite. 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] Re: Basic installation issue

2015-11-03 Thread Joseph Mohan
Awesome!

On Tuesday, 3 November 2015 16:46:46 UTC, Ryne Everett wrote:
>
> > finding it hard getting used to using them
>
> Something I've found very helpful in working with them is automatic 
> activation with autoenv . (For 
> zsh users I'd recommend zsh-autoenv 
>  instead.)
>
> On Tue, Nov 3, 2015 at 11:37 AM, Joseph Mohan  > wrote:
>
>> What a tit.. ended up out of my virtualenv.. finding it hard getting used 
>> to using them.. Thanks 
>>
>> On Tuesday, 3 November 2015 16:01:34 UTC, Ryne Everett wrote:
>>>
>>> Are you sure mezzanine is really installed in the virtualenv? Check in a 
>>> repl:
>>>
>>> $ workon my-virtualenv
>>> $ python
>>> >>> import mezzanine
>>> >>>
>>>
>>> On Tue, Nov 3, 2015 at 7:26 AM, Joseph Mohan  wrote:
>>>
 I also have the same problem with a virtualenv, any ideas anyone?

 On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>
> Hi there,
>
> I'm trying to follow the basic installation guide found here (
> http://mezzanine.jupo.org/docs/overview.html#installation).
>
> When I run:
>
>
> $ python manage.py createdb --noinput
>
>
> I get the below error:
>
>
> Traceback (most recent call last):
> File "manage.py", line 7, in 
> from mezzanine.utils.conf import real_project_name
> ImportError: No module named mezzanine.utils.conf
>
>
> I've definitely installed Mezzanine (via "pip install mezzanine") but 
> am am getting no further.
>
> This seems like such a basic issue and I much be missing something 
> obvious, so any help identifying what that is would be greatly 
> appreciated!
>
>
> Cheers,
>
> Rich
>
 -- 
 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.
 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-use...@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] Re: Basic installation issue

2015-11-03 Thread Ryne Everett
> finding it hard getting used to using them

Something I've found very helpful in working with them is automatic
activation with autoenv . (For zsh
users I'd recommend zsh-autoenv 
instead.)

On Tue, Nov 3, 2015 at 11:37 AM, Joseph Mohan  wrote:

> What a tit.. ended up out of my virtualenv.. finding it hard getting used
> to using them.. Thanks
>
> On Tuesday, 3 November 2015 16:01:34 UTC, Ryne Everett wrote:
>>
>> Are you sure mezzanine is really installed in the virtualenv? Check in a
>> repl:
>>
>> $ workon my-virtualenv
>> $ python
>> >>> import mezzanine
>> >>>
>>
>> On Tue, Nov 3, 2015 at 7:26 AM, Joseph Mohan  wrote:
>>
>>> I also have the same problem with a virtualenv, any ideas anyone?
>>>
>>> On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:

 Hi there,

 I'm trying to follow the basic installation guide found here (
 http://mezzanine.jupo.org/docs/overview.html#installation).

 When I run:


 $ python manage.py createdb --noinput


 I get the below error:


 Traceback (most recent call last):
 File "manage.py", line 7, in
 from mezzanine.utils.conf import real_project_name
 ImportError: No module named mezzanine.utils.conf


 I've definitely installed Mezzanine (via "pip install mezzanine") but
 am am getting no further.

 This seems like such a basic issue and I much be missing something
 obvious, so any help identifying what that is would be greatly appreciated!


 Cheers,

 Rich

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

-- 
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: Basic installation issue

2015-11-03 Thread Joseph Mohan
What a tit.. ended up out of my virtualenv.. finding it hard getting used 
to using them.. Thanks 

On Tuesday, 3 November 2015 16:01:34 UTC, Ryne Everett wrote:
>
> Are you sure mezzanine is really installed in the virtualenv? Check in a 
> repl:
>
> $ workon my-virtualenv
> $ python
> >>> import mezzanine
> >>>
>
> On Tue, Nov 3, 2015 at 7:26 AM, Joseph Mohan  > wrote:
>
>> I also have the same problem with a virtualenv, any ideas anyone?
>>
>> On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>>>
>>> Hi there,
>>>
>>> I'm trying to follow the basic installation guide found here (
>>> http://mezzanine.jupo.org/docs/overview.html#installation).
>>>
>>> When I run:
>>>
>>>
>>> $ python manage.py createdb --noinput
>>>
>>>
>>> I get the below error:
>>>
>>>
>>> Traceback (most recent call last):
>>> File "manage.py", line 7, in 
>>> from mezzanine.utils.conf import real_project_name
>>> ImportError: No module named mezzanine.utils.conf
>>>
>>>
>>> I've definitely installed Mezzanine (via "pip install mezzanine") but am 
>>> am getting no further.
>>>
>>> This seems like such a basic issue and I much be missing something 
>>> obvious, so any help identifying what that is would be greatly appreciated!
>>>
>>>
>>> Cheers,
>>>
>>> Rich
>>>
>> -- 
>> 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 .
>> 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] Re: Basic installation issue

2015-11-03 Thread Ryne Everett
Are you sure mezzanine is really installed in the virtualenv? Check in a
repl:

$ workon my-virtualenv
$ python
>>> import mezzanine
>>>

On Tue, Nov 3, 2015 at 7:26 AM, Joseph Mohan  wrote:

> I also have the same problem with a virtualenv, any ideas anyone?
>
> On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>>
>> Hi there,
>>
>> I'm trying to follow the basic installation guide found here (
>> http://mezzanine.jupo.org/docs/overview.html#installation).
>>
>> When I run:
>>
>>
>> $ python manage.py createdb --noinput
>>
>>
>> I get the below error:
>>
>>
>> Traceback (most recent call last):
>> File "manage.py", line 7, in
>> from mezzanine.utils.conf import real_project_name
>> ImportError: No module named mezzanine.utils.conf
>>
>>
>> I've definitely installed Mezzanine (via "pip install mezzanine") but am
>> am getting no further.
>>
>> This seems like such a basic issue and I much be missing something
>> obvious, so any help identifying what that is would be greatly appreciated!
>>
>>
>> Cheers,
>>
>> Rich
>>
> --
> 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.
>

-- 
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: Basic installation issue

2015-11-03 Thread Joseph Mohan
I also have the same problem with a virtualenv, any ideas anyone?

On Sunday, 2 August 2015 23:51:22 UTC+1, Richard Jackson wrote:
>
> Hi there,
>
> I'm trying to follow the basic installation guide found here (
> http://mezzanine.jupo.org/docs/overview.html#installation).
>
> When I run:
>
>
> $ python manage.py createdb --noinput
>
>
> I get the below error:
>
>
> Traceback (most recent call last):
> File "manage.py", line 7, in 
> from mezzanine.utils.conf import real_project_name
> ImportError: No module named mezzanine.utils.conf
>
>
> I've definitely installed Mezzanine (via "pip install mezzanine") but am 
> am getting no further.
>
> This seems like such a basic issue and I much be missing something 
> obvious, so any help identifying what that is would be greatly appreciated!
>
>
> Cheers,
>
> Rich
>

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