[mezzanine-users] Re: BlogPost extension

2015-03-27 Thread Pushkar Paranjpe
Update:

A cleaned-up work-flow:

   1. Add custom fields using the EXTRA_MODEL_FIELDS in settings.py
   2. Update respective model's fieldsets in admin.py
   3. delete dev.db
   4. delete all migrations .py under your custom theme app
   5. python manage.py createdb --noinput
   6. python manage.py syncdb
   7. python manage.py migrate
   8. Login to admin and Go to blog posts section and add new post with 
   your custom fields :)

*NOTE:* Of course, you will lose all previous blog posts, pages data that 
was entered through the cms earlier. You will have to re-add that stuff.
If anyone knows how to automate this part, given the data to be entered 
that would be very valuable :)

Cheers!
Pushkar

On Friday, 27 March 2015 05:09:40 UTC+5:30, Pushkar Paranjpe wrote:

 Correct me if I am missing something. Relatively new to Mezzanine and to 
 Django :)

 I managed to add a custom field *header_image* to the BlogPost model 
 using the EXTRA_MODEL_FIELDS approach.

 Just have to add one note in case someone else finds this useful:

 *If* the DB already exists and then the above extra field is injected,

 The following command *does not pick it up*: 
 python manage.py schemamigration theme --auto

 I needed to delete the dev.db, clean-up the migration history and run the 
 following command for the custom fields to be incorporated into the 
 BlogPost model:
 python manage.py createdb --noinput

 (then ...
 python manage.py schemamigration theme --initial
 python manage.py migrate theme --fake ... )



 On Tuesday, 11 October 2011 18:29:07 UTC+5:30, wesley wrote:

 Hi, 

 I'm a new mezzanine user (great framework !), I would like to create a 
 new class of BlogPost with some custom fields. 
 Can we just inherit from BlogPost class and create an admin class 
 (like Page in the documentation/tutorial) ? 

 If not what is the best way to accomplish that ? 

 Thanks for your help. 



-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Wan Hsin Mao


Do u mean this page?

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

-- 
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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Graham Oliver
I also found this in the mailing list
http://grokbase.com/p/gg/mezzanine-users/1326ek5pna/commenting-gives-me-an-error-when-debug-is-set-to-off

On 27 March 2015 at 19:07, Wan Hsin Mao cindy55212...@gmail.com wrote:

 I use Apache2.2, so there shouldn't be file permission problems if I set
 my upload directory Order allow,deny / Allow from all ? (I'm not sure if
 it's right)

 --
 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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Graham Oliver
yes I was just wondering if there was anything more helpful with the error
message.
I have searched the code base and I can only find the text 'An error
occurred' in one place
https://github.com/orotau/mezzanine/blob/master/mezzanine/core/static/mezzanine/js/editable.js#L19

I don't know if that is where the error message is coming from?
g

On 27 March 2015 at 19:03, Wan Hsin Mao cindy55212...@gmail.com wrote:

 Do u mean this page?


 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11100235_915791538441828_6765449119291652476_n.jpg?oh=c5460dffae23740a2f845ea8e4b1f93foe=55B73673__gda__=1436814405_303eb83f26420ae34f0a1ccbb5b792bb

  --
 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: Mezzanine 3.1.10: Can't delete the media files in the admin page

2015-03-27 Thread Wan Hsin Mao
I use Apache2.2, so there shouldn't be file permission problems if I set my 
upload directory Order allow,deny / Allow from all ? (I'm not sure if 
it's right)

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