[mezzanine-users] Re: How to load template based on slug?

2017-11-06 Thread Tom Tanner
I read those, but unfortunately I'm not sure I understand. I changed my directory a bit, so it's... theme/ - templates/ -- pages/ --- project_pages/ project_base.html projects/ - some-content.html My `views.py` changed slightly.. def project_detail(request, slug,

Re: [mezzanine-users] Re: How to load template based on slug?

2017-11-06 Thread Ken Bolton
On Mon, Nov 6, 2017 at 3:08 PM, Rainell Dilou Gómez wrote: > > Before starting with this work, I would recommend you (strongly > recommended) to read the *Django documentation about the work with > templates * and >

[mezzanine-users] Re: How to load template based on slug?

2017-11-06 Thread Rainell Dilou Gómez
Well, you can take advantage of the work you have done so far, that is, you have created your own content type, then you should make the necessary adjustments so that Mezzanine dynamically loads the indicated template, for example by the slug field. Obviously, each slug should correspond to a

[mezzanine-users] Datatable CRUD, master/detail forms and nice jQuery/Bootstrap interactivity.

2017-11-06 Thread Michel Depiesse
Hi folks, I want to write software for stock management and accounting. I need datatable CRUD, master/detail forms and nice jQuery/Bootstrap interactivity. I have two questions : - Is Mezzanine a tool for this kind of application ? - Can I add freely the django packages in a Mezzanine

[mezzanine-users] Re: How to load template based on slug?

2017-11-06 Thread Rainell Dilou Gómez
Yes, Django uses SQLite by default. See DATABASES configuration in local_settings.py, this file is in your project folder. The "ENGINE" key specify the type of database should be used. If you want to use PostgreSQL set that key as follow "ENGINE": "django.db.backends.postgresql_psycopg2"