mezzanine

How to deploy mezzanine on heroku?

只愿长相守 提交于 2019-12-07 12:21:01
问题 I have created a mezzanine project and its name is mezzanine-heroku-test I create a Procfile that has the content as follow: web: python manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3 Next, I access to the website to test and I receive the error: Internal Server Error. So, Could you please help me deploy mezzanine on heroku step by step or some suggestion? Thank you so much. 回答1: You should be able to see the error in the logs which you can get to using the heroku tool. heroku logs 回答2: These

How to set the permissions for admins of Django/Mezzanine sites

烂漫一生 提交于 2019-12-05 18:14:55
I'm not sure what permissions I have to assign to a group so that users of that group can login to the admin area of the specific Mezzanine site that they are assigned to. The user have Staff status checked. I want the group to have limited access to settings such as: sites (all) redirects (all) core (all) auth | can add user auth | can delete user auth | permission (all) auth | group (all) I'm note sure what this permissions are suppost to do (but when adding them I can't login anyway): admin | log entry (all) The error message I get is: You don't have permission to access the admin for this

Django - custom admin page not related to a model

北慕城南 提交于 2019-12-05 02:55:57
问题 I am using Django 1.7 with Mezzanine. I would like to have some page in admin, where the staff can call some actions (management commands etc.) with buttons and other control elements. I would also like to avoid creating new model, or manually create a template and add link to it (if possible). What is the most common/clean ways how to achieve that? 回答1: Actually it is simpler. Just before urlpatterns in urls.py patch admin urls like that: def get_admin_urls(urls): def get_urls(): my_urls =

Issues with admin in django

跟風遠走 提交于 2019-12-04 06:55:36
问题 I am making a shopping cart using mezzanine and cartridge. In my order model there is a field called status which has choices of unprocessed and processed. After an order is placed an admin can change their status. I want to send an email to the user whenever an admin updates the status. I have done some R&D on it but I didn't find anything which tells me how to send an email on change of status. My model: class Order(models.Model): ... .... ........ status = models.IntegerField(_("Status"),

Django - custom admin page not related to a model

一笑奈何 提交于 2019-12-03 17:37:44
I am using Django 1.7 with Mezzanine. I would like to have some page in admin, where the staff can call some actions (management commands etc.) with buttons and other control elements. I would also like to avoid creating new model, or manually create a template and add link to it (if possible). What is the most common/clean ways how to achieve that? Actually it is simpler. Just before urlpatterns in urls.py patch admin urls like that: def get_admin_urls(urls): def get_urls(): my_urls = patterns('', url(r'^$', YourCustomView,name='home'), ) return my_urls + urls return get_urls admin

How To Deploy: Installing Mezzanine Theme

北城余情 提交于 2019-12-03 05:13:51
问题 How to install Mezzanine Theme exactly, step-by-step? E.g., Moderna free theme. 回答1: Preconditions: 0) Versioning Python 2.7.6. Django 1.6.10 Mezzanine 3.1.10 Moderna v.? (static content) 1) I used PythonAnywhere for hosting 2) I followed this way to install Mezzanine: here, at the bottom there are links to PythonAnywhere specific guides 3) So, initial state is: Mezzanine is deployed, empty, with default theme. 4) [optional] Basic templates are collected (~80 of them it was) 5) Static is

Installing Pillow, getting -Wunused-command-line-argument-hard-error-in-future

怎甘沉沦 提交于 2019-12-01 20:39:33
I cannot get pillow installed. (env)noah:cupalensic2 broinjc$ which cc /usr/bin/cc (env)noah:cupalensic2 broinjc$ cc --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix I ran pip install mezzanine and when it got to satisfying pillow it screwed up... cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch

How to add a custom template page to mezzanine?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 04:55:35
问题 I've been playing around with mezzanine for a couple days and I've been following this blog, which has been very helpful. I'm now at the point where I need to make a bunch of pages that need to be based off of a custom template. My custom template is called content.html I've put it in myProject > myApp/theme folder > templates > pages > content.html but when I look in the admin console, I don't see content in the drop down menu. How do I get mezzanine to recognize my content.html page as a

Database returned an invalid value in QuerySet.dates()

青春壹個敷衍的年華 提交于 2019-11-27 10:36:35
I get this error on my Ubuntu 12.04 machine with mysql 5.5 after I imported some Wordpress content to Mezzanine's blog_blogpost. ValueError at /admin/blog/blogpost/ Database returned an invalid value in QuerySet.dates(). Are time zone definitions and pytz installed? Request Method: GET Request URL: http://127.0.0.1:8000/admin/blog/blogpost/ Django Version: 1.6.1 Exception Type: ValueError Exception Value: Database returned an invalid value in QuerySet.dates(). Are time zone definitions and pytz installed? Exception Location: /home/me/.mezenv/local/lib/python2.7/site-packages/django/db/models

Database returned an invalid value in QuerySet.dates()

断了今生、忘了曾经 提交于 2019-11-26 15:17:34
问题 I get this error on my Ubuntu 12.04 machine with mysql 5.5 after I imported some Wordpress content to Mezzanine's blog_blogpost. ValueError at /admin/blog/blogpost/ Database returned an invalid value in QuerySet.dates(). Are time zone definitions and pytz installed? Request Method: GET Request URL: http://127.0.0.1:8000/admin/blog/blogpost/ Django Version: 1.6.1 Exception Type: ValueError Exception Value: Database returned an invalid value in QuerySet.dates(). Are time zone definitions and