Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-04-01 Thread Jesse Carrigan
Ken, thank you for posting the link to the Effective Django tutorial. Looks really useful. -- 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] What to do next?

2014-04-01 Thread Tameen Malik
*processor_for.py* from django import forms from django.http import HttpResponseRedirect from mezzanine.pages.page_processors import processor_for from .models import Book class BookForm(forms.Form): name = forms.CharField() email = forms.EmailField() @processor_for(Author) def

Re: [mezzanine-users] How to set menus and to get postedata in Mezzanine Django

2014-04-01 Thread Tameen Malik
thank's ! hmm can you answer my second question, i posted today with title `what to do next`! -- 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

Re: [mezzanine-users] Page Processors with Slug

2014-04-01 Thread Tameen Malik
page_processor.py defining restaurant function. How to define url to access this function can you please write this line of code? -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails

[mezzanine-users] Page Processors are not working!

2014-04-01 Thread Tameen Malik
processors.py file: from django import forms from django.http import HttpResponseRedirect from mezzanine.pages.page_processors import processor_for from .models import Author class AuthorForm(forms.Form): name = forms.CharField() email = forms.EmailField() @processor_for(Author) def

[mezzanine-users] Re: Issues with page processors in Mezzanine

2014-04-01 Thread Tameen Malik
Excellent Explanation of page processor. I was lokking for such explanation from last 2 days. Good job @Eduardo -- I am trying to achieve this goal too. can you please help me to solve similar problem https://groups.google.com/forum/#!topic/mezzanine-users/D9Gjp_jOQNM%5B1-25-false%5D

Re: [mezzanine-users] Re: Cartridge shop missing from admin on deployed site

2014-04-01 Thread Ken Bolton
A colleague and I have a shorthand for caching issues: cashews. Holding down the shift key during a reload generally bypasses the cache. https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache best, ken On Tue, Apr 1, 2014 at 1:55 AM, Jesse Carrigan jesse.m.carri...@gmail.comwrote: Looks

[mezzanine-users] Page in admin panel

2014-04-01 Thread Paullo
Hi, I've created modules that work as expected but I'm using the django way. I would like to use the Mezzanine way instead (Mainly to avoid having to create mobile templates..) but it doesn't show up in the admin panel. The docs state that inheriting from PageAdmin will only allow it to be

Re: [mezzanine-users] Where to define Proccessor_for.py

2014-04-01 Thread Josh Cartmell
Don't modify any of the Mezzanine code directly. You need to create an app of your own, add it to INSTALLED_APPS and inside of that app create a page_processors.py file. After that it will be automatically picked up. On Mon, Mar 31, 2014 at 10:47 PM, Tameen Malik tame...@gmail.com wrote: All

Re: [mezzanine-users] Re: What to do next?

2014-04-01 Thread Josh Cartmell
I'm not sure, are you getting an error message? On Tue, Apr 1, 2014 at 1:21 AM, Tameen Malik tame...@gmail.com wrote: *urls.py* urlpatterns += patterns('', url(r'^/xyz/$', create_Book)) -- You received this message because you are subscribed to the Google Groups Mezzanine Users

Re: [mezzanine-users] Re: Page Processors are not working!

2014-04-01 Thread Josh Cartmell
Is author a model in one of your apps? TO be effective with Mezzanine you need to have a good understanding of Django, I would suggest going through the Django tutorial, https://docs.djangoproject.com/en/1.7/intro/tutorial01/ On Tue, Apr 1, 2014 at 3:35 AM, Tameen Malik tame...@gmail.com wrote:

Re: [mezzanine-users] Page in admin panel

2014-04-01 Thread Josh Cartmell
Hey Paullo, at this point if you go to Content - Pages in the admin you should be able to choose Event in the Add dropdown. What sort of functionality are you looking for? On Tue, Apr 1, 2014 at 7:05 AM, Paullo paul.c.h...@gmail.com wrote: Hi, I've created modules that work as expected but

Re: [mezzanine-users] Re: Page Processors are not working!

2014-04-01 Thread Tameen Malik
Yes author is model @Josh Thank's Allah, i solve this problem. What i did is i decided to start from simple model and simple example. *models.py file:* from django.db import models from mezzanine.pages.models import Page class Author(Page): dob = models.DateField(Date of

Re: [mezzanine-users] Re: Page Processors are not working!

2014-04-01 Thread Josh Cartmell
Great, I'm glad you worked it out ;) On Tue, Apr 1, 2014 at 9:20 AM, Tameen Malik tame...@gmail.com wrote: Yes author is model @Josh Thank's Allah, i solve this problem. What i did is i decided to start from simple model and simple example. *models.py file:* from django.db import

Re: [mezzanine-users] Page in admin panel

2014-04-01 Thread Josh Cartmell
Hey Paul, I would probably have Events subclass Displayable rather than page. Page's are good for static content that belong in the menus, but not so good for content that has some sort of natural order (like dates for events). I would look at how Mezzanine's BlogPosts work and do something

Re: [mezzanine-users] Page in admin panel

2014-04-01 Thread Paullo
Cool, thanks Josh. Paul On Tuesday, 1 April 2014 17:55:00 UTC+1, Josh Cartmell wrote: Hey Paul, I would probably have Events subclass Displayable rather than page. Page's are good for static content that belong in the menus, but not so good for content that has some sort of natural order

Re: [mezzanine-users] Can't figure out why my Static Files won't load

2014-04-01 Thread Kyle Pennell
Hey Jesse, Thanks for looking over this. Ok, so you had to change it to an actual domain then? Did you do the whole DNS redirect and everything to setup that domain with your digital ocean IP? On Monday, March 31, 2014 11:58:43 PM UTC-6, Jesse Carrigan wrote: Rather than the IP address of

Re: [mezzanine-users] Re: Tried 3-4 heroku deployment tutorials but stuck on each one.

2014-04-01 Thread Josh Cartmell
Hey Kyle, I was also struggling getting things going on Digital Ocean earlier in the week. I just wrote up a blog post on deploying to it: http://bitofpixels.com/blog/deploying-mezzanine-to-digital-ocean-using-the-included-fabfile/ Following those steps works for me, hopefully it helps! On

Re: [mezzanine-users] Can't figure out why my Static Files won't load

2014-04-01 Thread Jesse Carrigan
Correct, my DNS records on Digital Ocean are set up as follows (I'm faking some of the information here): example.com A record: @ 192.168.123.123 NS: NS1.DIGITALOCEAN.COM NS: NS2.DIGITALOCEAN.COM NS: NS3.DIGITALOCEAN.COM example.com is in the ALLOWED_HOSTS list. It sounds like you may not have

Re: [mezzanine-users] Can't figure out why my Static Files won't load

2014-04-01 Thread Jesse Carrigan
I don't have it on github, but it basically follows the pattern of the deploy/ngnix.conf file in the mezzanine project. Here's what it looks like: upstream example {server 127.0.0.1:8001;}server {listen 80;listen 443 ssl;server_name example.com;client_max_body_size

Re: [mezzanine-users] Can't figure out why my Static Files won't load

2014-04-01 Thread Kyle Pennell
I'm going to try Fabric next. I was trying to the Digital Ocean Tuts to try to get this but no dice. On Tue, Apr 1, 2014 at 1:38 PM, Jesse Carrigan jesse.m.carri...@gmail.comwrote: Just out of curiosity, are you using fabric to deploy your site or are you editing the config by hand? Also, a