Problem with cookies and template

2009-10-10 Thread Denis Bahati
Hi all, Am new to python and django but am facing aproblem with templates and login the admin page. 1) I cannot login to admin page page because django keeps giving me a message Look for your browser cofiguration to allow cookies but am sure my browser allows all cookies. 2) Am using xampp 1.7.1 as

Re: Xampp and django

2009-10-11 Thread Denis Bahati
Thanx a lot for the information, but i managed to get it working before this information. I have another problem that the __unicode()__ is not working. It just gives me Poll object instead of the name of data from the database, i put the function at the beginning of the line, but if i put a tab to

__unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Hi there i have the problem with unicode function it doesn't give me any changes. the poll list is displayed as Poll object and does doesn't give me error if i write the models.py like this:from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_l

__unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Hi all, I have a problem with __unicode__(self) function it doesn't give any changes to the display of poll list it just display the Poll object when i code like below: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub_

Re: __unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Did you see my second post? I changed it still a problem On Mon, Oct 12, 2009 at 8:19 AM, Denis Bahati wrote: > Hi all, > I have a problem with __unicode__(self) function it doesn't give any > changes to the display of poll list it just display the Poll object when i >

Hi All: __unicode__(self)

2009-10-11 Thread Denis Bahati
Hi all, I have a problem with __unicode__(self) function it doesn't give any changes to the display of poll list it just display the Poll object when i code like below: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub

Re: Hi All: __unicode__(self)

2009-10-12 Thread Denis Bahati
Thank in advance for the advices. On Mon, Oct 12, 2009 at 8:55 AM, Russell Keith-Magee wrote: > > On Mon, Oct 12, 2009 at 1:44 PM, Kenneth Gonsalves > wrote: > > > > On Monday 12 Oct 2009 11:05:38 am Denis Bahati wrote: > >> class Poll(models.Model): > &

Using django form

2009-10-28 Thread Denis Bahati
Hi all, I've gone through and successfully made the poll application and I've begun to play around and tried to change a few things. The first thing I would like to do is have the user vote without login to django admin. ie creating my own form where users can vote and update the database without u

Re: Using django form

2009-10-29 Thread Denis Bahati
Hi Daniel, Thanks for the document. I real appreciate. I have another question: How can I use my model and ModelForm to create a login screen? On Thu, Oct 29, 2009 at 10:14 AM, Daniel Roseman wrote: > > On Oct 29, 6:38 am, Denis Bahati wrote: > > Hi all, > > I&#

Login users

2009-10-29 Thread Denis Bahati
Hi All, Am creating application using django/python, i want to create a login form where by normal users can login through the web and access the system, i have a background with PHP but new to python/django. How can I implement this login? Currently am using the Django Admin page for login the sy

Display a value from another table

2009-11-01 Thread Denis Bahati
Hi All, Am developing an application where by it links two tables author and book, the id of author is a foreign key to book table. How can i display the name of the author when am displaying the book list. --~--~-~--~~~---~--~~ You received this message because you

Re: Display a value from another table

2009-11-02 Thread Denis Bahati
ss BookForm(ModelForm): class Meta: model = Book What i want is that, if i need to display the book detail it should give me who is the other for a particular book. On Mon, Nov 2, 2009 at 9:25 AM, Rishabh Manocha wrote: > On Mon, Nov 2, 2009 at 1:43 PM, Denis Bahati wrote: >

User Login in django

2009-11-03 Thread Denis Bahati
Hi there, Am creating a login screen using django form but failing to get the concept on how can i query from the database to get the user verified as a registered user. I want that a user is validated and displayed with his/her profile as well update his/her profile. The user can view only the al

Re: User Login in django

2009-11-03 Thread Denis Bahati
< bruno.desthuilli...@gmail.com> wrote: > > On 3 nov, 13:37, Denis Bahati wrote: > > Hi there, > > Am creating a login screen using django form but failing to get the > concept > > on how can i query from the database to get the user verified as a > > registere

Adding a password confirm on modelForm

2009-11-03 Thread Denis Bahati
Hi All, I have my model which registers users of my system and i created a modelForm to make all fields of the model appear as html form which has no confirm password. How can i add a field to let users confirm their password? Here is my model and modelForm class User(models.Model): title = models

Template not displaying

2009-11-10 Thread Denis Bahati
Hi all, am using xampp as webserver with django 1.1,when i access the browser the template does not work. The media is in c:/xampp/htdocs/adc/media/ where i put the css,img and js folders. I set admin_media_prefix='http:/127.0.0.1/adc/media/' the same to media_url. The template is at c:/xampp/htdo

Increment a value in a database table field

2009-11-12 Thread Denis Bahati
Hi All, I have a field with an integer value which needs to be incremented every time any user updates its status within a week. If that week has passed it should insert a new row. Now i was trying to figure out but didn't get any concept on how to go through. Please any idea? -- You received th

Re: Increment a value in a database table field

2009-11-14 Thread Denis Bahati
cot.hac...@gmail.com < scot.hac...@gmail.com> wrote: > > On Nov 12, 7:51 am, Denis Bahati wrote: > > Hi All, > > > > I have a field with an integer value which needs to be incremented > > every time any user updates its status within a week. If that week has > > pas

Re: Increment a value in a database table field

2009-11-15 Thread Denis Bahati
ey wrote: > On Sat, Nov 14, 2009 at 10:25 AM, Denis Bahati wrote: > >> Hi, >> Here is my model am using to update items status. >> >> class User(models.Model) >> users = models.ForeignKey(User) >> resources = models.ForeignKey(Res

Re: Password encryption

2009-11-16 Thread Denis Bahati
It does not save anything when i click the submit button and it remains on the same interface. Any ideas? On Mon, Nov 16, 2009 at 7:50 AM, Gabriel Gunderson wrote: > On Thu, Nov 5, 2009 at 12:51 AM, Denis Bahati wrote: > > My project require to have my own table

RapidSMS on windows

2009-11-17 Thread Denis Bahati
Hi All, Does RapidSMS work on windows? Please if it does can anyone show me the detail on how to go through. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Login Error

2009-11-17 Thread Denis Bahati
Hi All, I have created a login screen for users of the site which is like User Profile and uses the username and password from django users. When i try to login to my view i get the error below. Environment: Request Method: POST Request URL: http://127.0.0.1/commTrack/commtrack/account/login/ Djan

Re: Problem with serving static files

2009-11-18 Thread Denis Bahati
how do you make them similar? because its also a problem to with TinyMCE. On Wed, Nov 18, 2009 at 4:13 PM, jeremyrdavis wrote: > The document root specified in urlpatterns should match the directory > where your files are located. You have "/mysite/media/" in your > urlpatterns and "C:\django_pr