On Oct 17, 4:25 pm, ryan <[EMAIL PROTECTED]> wrote:
> "I do have A feild in my times
> model named user"
>
> Is it a ForeignKey to Django's User model?
> If so you need to import that at the top of your models.py file
>
> -ryan
>
> On Oct 17, 3:42 pm, KillaBee <[EMAIL PROTECTED]>
> wrote:
>
> > I keep getting this error that says ViewDoesNotExist:  Could not
> > import intranet.timesheets.views. Error was: No module named User.  No
> > i do not have a User module, I don't want nor need one.  How do I find
> > out Where it is being call at?  I got this error today, and I have
> > been trying to get the users logged in.  I do have A feild in my times
> > model named user, and Have been getting errors about not know what
> > username is.  not sure where it's coming from.
> > View:  Because It is an error in the view I was thinking that it was
> > in the view.py or a template.  no matter want the url or view is bing
> > used it still comes up.  Does that sound like I am looking in the
> > right spot?
>
> > error                      http://dpaste.com/85152/
> > url                          http://dpaste.com/85153/
> > views                      http://dpaste.com/85154/
> > models                    http://dpaste.com/85158/
>
> > Hope you can understand the problem.
>
>

the models.py is where it comes from, if you are talking about view.py
these are the two entries that I thought should have taken care of
it.  The error that that it was looking for class name User,like the
one that is the auth.models, but from my view.py.  If I am read it
right.

from django.contrib.auth.models import User
from intranet.timesheets.models import user, worked, fedtime

Is Django case sensitive?  Is user and User the same thing?

class time(models.Model):

    user = models.CharField(max_length=20, blank=True)

    fedtime = models.IntegerField(null=True, blank=True)

    date = models.DateField(null=True, blank=True)

    worked = models.CharField(max_length=3, blank=True)
    year = models.IntegerField(null=True, blank=True)

    month = models.IntegerField(null=True, blank=True)
    day = models.IntegerField(null=True, blank=True)
    #t=time(user=user, fedtime=fedtime, date=date, worked=worked)
    #times.objects
    #<django.db.models.manager.Manager object at ...>
    #t.obejects
    #all_times= times.objects.all()
    class Meta:

        db_table = u'timesheet'
    class calendarpopup(forms.TextInput):
        class Media:
            js = ('calendar.js', 'calendar1.js', 'calendar2.js')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to