Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Swati Pushp
from .models import mdb Please do import this class in views.py On Sun, Jul 8, 2018, 6:42 PM wrote: > hi all > help plz :) > as brief i am using django an linux > i create project and app in this project called movies > in models i create 2 classes mdb and mm > in views when i try to import

Re: Django DateField

2018-07-06 Thread Swati Pushp
you want date auto genrate ?? On 6 July 2018 at 20:16, 'dtdave' via Django users < django-users@googlegroups.com> wrote: > Many thanks for the help on this. I have implemented the following: > models.py > start_date = models.DateField(null=True, blank=True,) > asap =

Re: django database setup problem

2007-10-04 Thread swati
-devel package, but getting lots of "Failed dependencies" error. I am working on Fedora 4 system. Do I have to upgrade my system to setup django properly? Any idea? Many thanks, Swati On Oct 3, 10:25 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > You're on the ri

django database setup problem

2007-10-03 Thread swati
ql, python 2.4, and mod_python installed in my machine. Any idea what I am missing out? Please help. Many Thanks, Swati --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: url config problem

2007-09-26 Thread swati
I have configured httpd.conf, you can look at it at http://82.165.180.35:8088/djproject/ I can see the first django page. Could not run any application when I try to do that by editing urls.py file. Thanks, Swati On Sep 26, 1:27 pm, Dushyant Sharma <[EMAIL PROTECTED]> wrote: > i think

url config problem

2007-09-25 Thread swati
I am running it through apache (I have set up django with mod_python on apache successfully) its displaying 404 error. Can anyone please help? Many Thanks, Swati --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups