Considering my eve*nement model, how can I get all the objects inside it? 
I've tried evenement_posts as it is a BlogPost, theme.evenement.object_list 
and much more without success; so please could you help me???*

On Thursday, 4 June 2015 11:18:20 UTC, Jean de la Croix Ki wrote:
>
> Thanks so much, this was very useful to me, I solve the problem and 
> everything works fine now. I was worrying about deployment too and I think 
> you gave a point where to start! Thanks...
>
> On Tuesday, 2 June 2015 14:16:39 UTC, Kenneth Bolton wrote:
>>
>> Certainly! Since it is sqlite, you can just delete the database file on 
>> the filesystem.
>>
>>
>> For best results, you are encouraged to use the same database in 
>> development and production. Most Django developers – grossly generalizing – 
>> use postgresql. Mezzanine's Fabric deployment is built for postgres.
>>
>> hth.
>>
>> -ken
>>
>> On Tue, Jun 2, 2015 at 9:58 AM, Jean de la Croix Ki <[email protected]> 
>> wrote:
>>
>>> Thanks, but I've tried all this. Is it possible, as I'm using sqlite3, 
>>> to delete the database and re-create it?
>>>
>>> On Tuesday, 2 June 2015 12:52:46 UTC, Kenneth Bolton wrote:
>>>>
>>>> Hi Jean,
>>>>
>>>> Have you created a schema migration for your app or run syncdb? Either 
>>>> of those commands should sort you out, and creating a schema migration 
>>>> will 
>>>> allow you to automate database changes going forward.
>>>>
>>>> hth.
>>>>
>>>> -ken
>>>>
>>>> On Tue, Jun 2, 2015 at 8:15 AM, Jean de la Croix Ki <[email protected]
>>>> > wrote:
>>>>
>>>>> I'm trying to build up a page which is a subclass of 
>>>>> mezzanine.blog.models.BlogPost; but when I try to create an instance I 
>>>>> get 
>>>>> the following: 
>>>>> OperationalError at /admin/theme/evenement/
>>>>> no such column: theme_evenement.blogpost_ptr_id
>>>>>
>>>>> And here is how I construct my class : 
>>>>> from mezzanine.blog.models import BlogPost
>>>>>
>>>>> class Evenement(BlogPost):
>>>>>
>>>>>     '''
>>>>>     
>>>>>     '''
>>>>>         
>>>>>     class Meta:
>>>>>         verbose_name = _("Evènement")
>>>>>         verbose_name_plural = _("Evènements")
>>>>>
>>>>> admin.site.register(Evenement, BlogPostAdmin)
>>>>>
>>>>> Environment:
>>>>>
>>>>>
>>>>> Request Method: GET
>>>>> Request URL: http://127.0.0.1:8000/admin/theme/evenement/
>>>>>
>>>>> Django Version: 1.6.7
>>>>> Python Version: 3.3.2
>>>>>
>>>>> Please 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 [email protected].
>>>>> 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 [email protected].
>>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to