static files in django

2011-10-14 Thread Pulkit Mehrotra
hey i am having problem loading my static files in django 1.3 Here is my template:http://pastebin.com/nr7Z97SJ here is my static file : http://pastebin.com/mEPYMGFt here is my url file:http://pastebin.com/Dsz5T9zh I have given the right address in staticfiles_dir but still the problem persists a

django form inputs

2011-04-30 Thread Pulkit Mehrotra
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/mysite/wish Django Version: 1.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.cont

Attribute error

2011-04-30 Thread Pulkit Mehrotra
AttributeError at /mysite/wishlist/ 'module' object has no attribute 'CharField' What does this error means ??? View for this is: from django.shortcuts import render_to_response from django.http import HttpResponseRedirect,HttpResponse from wishlist.models import wish from wishlist.forms import

form input

2011-04-30 Thread Pulkit Mehrotra
can anyone tell me the precise way of taking an input from a form and storing it in a database or provide a good link where i can find one i am a newbie so please help me thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Attribute error

2011-04-30 Thread Pulkit Mehrotra
changed the name but nothing happened the django version is 1.3 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsu

Django filefield

2011-05-08 Thread Pulkit Mehrotra
I want to create a system by which i can upload files to my database .This database will be a set of question papers .These question papers can be downloaded by students for their own use and evaluation.How to create it .What is the use of django filefield.Please provide any links for it . than

Contact us form

2011-06-01 Thread Pulkit Mehrotra
I am trying to make a contact us form which will send a mail to me using the smtp server .It will load the thank you page after form submission .Everything is working something ,the thank you page is loading and i am not getting any errors ,but i am not getting the mails. here is my views.py fi

Re: Contact us form

2011-06-01 Thread Pulkit Mehrotra
thank you that was helpful the settings were not correct django form is great -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/RWtBR3JNZ21DaHdK. To post to

imagefield problem .....

2011-06-13 Thread Pulkit Mehrotra
problem in using the address stored in imagefield *this is the news.html:* News {% if news_list %} {% for news in news_list %} {{ news.image }} || {{ news.news }} {% endfor %} {% endif %} *this is the views*: from django.shortcuts import render_to_resp

django comments application Caught No Reverse Mismatch while rendering

2011-06-19 Thread Pulkit Mehrotra
{% load comments i18n %} 2 {% csrf_token %} 3 {% if next %}{% endif %} 4 {% for field in form %} 5 {% if field.is_hidden %} 6 {{ field }} 7 {% else %} 8 {% if field.errors %}{{ field.errors }}{% endif %} 9 12 {{ field.label_tag }} {{ field }} Whenever i use comment_form_target i am getting

python mysqldb installation problem

2011-02-28 Thread Pulkit Mehrotra
OS: Ubuntu 10.04 I am learning web developing with Django.I downloaded and installed python-mysql but i couldn't connect.I think problem is database settings. Here is the process: django-admin.py startproject mysite #creating a project and a mysite folder files in 'mysite' folder: /__init__.py /u