[mezzanine-users] Re: Basic PostgreSQL installation

2015-08-25 Thread Richard Jackson
Hi Micah, I get: *CommandError: Database already created, you probably want the migrate command* So when I run python manage.py migrate I get: *Operations to perform:* * Synchronize unmigrated apps: *sitemaps, grappelli_safe, staticfiles, boot, filebrowser_safe * Apply all migrations:

[mezzanine-users] Re: Validating BlogPost model categories

2015-08-25 Thread Matt Hughes
Ok i think i might have figured it out, I needed to hook the save_related() method from BlogPostAdmin not sure if this is the correct way tho, i just hooked into __getattribute__, and watched for any methods that looked useful so i ended up adding the following to BlogPostAdmin def

Re: [mezzanine-users] Re: Basic PostgreSQL installation

2015-08-25 Thread Danny
On 26/08/2015 12:32 AM, Richard Jackson wrote: snip 3) Within the 'settings.py' file alter the DATABASES text to read as below: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test_db', 'USER': 'test_user',

Re: [mezzanine-users] Re: Basic PostgreSQL installation

2015-08-25 Thread Richard Jackson
Hi Danny, I hadn't changed local_settings - thank you so much! I'm really new to Django/Mezzanine and hadn't seen what local_settings actually did (and for some reason hadn't considered looking...). Thanks for the database-hunting snippet as well! Much appreciated, Rich On Tuesday, August

[mezzanine-users] Would django-auth-policy be compatible with Mezzanine 4.0.1?

2015-08-25 Thread Punx Phil
Hi, Django-Auth-Policy ( goog_46463379 https://github.com/Dreamsolution/django-auth-policy) is a set of tools to enforce various authentication policies when using the Django Web Framework. I've followed the sparse instructions and got an error in a vanilla django 1.8.3 project (mostly likely

[mezzanine-users] Re: Would django-auth-policy be compatible with Mezzanine 4.0.1?

2015-08-25 Thread Punx Phil
On Wednesday, August 26, 2015 at 10:16:21 AM UTC+12, Punx Phil wrote: The quick setup may tell someone instantly if this would work with mezzanine: Quick setup === * Install ``django_auth_policy`` using pip, easy_install or the provided setup.py. * Add ``django_auth_policy`` to

[mezzanine-users] Re: Does Cartridge suppress exceptions ?!

2015-08-25 Thread David Unric
Just add, this issue is at more fundamental basis, ie. Python's specific handling with *AttributeError* exception and conflicting situation when a property and *__getattr__* method are defined. Not yet found a satisfying solution, maybe remove *FormsetForm.__getattr_* entirely and replace with

[mezzanine-users] Cartridge - new fields in the admin interface

2015-08-25 Thread Eric Boo
Hi, I'd like to add a few more richtext fields to the Add Product page in the admin interface. In future, perhaps even more fields. In Mezzanine, I can create a custom content type as per http://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types In Cartridge, I