Re: Custum save on Foreignkey in Admin

2013-02-05 Thread Avnesh Shakya
plz tell me why this error is coming here... after setting urls.py. plz help me.. ViewDoesNotExist at /admin/ Could not import foo.views.index. View does not exist in module foo.views. Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: 1.4.3Exception Type:ViewDoesNotExi

plz help me for error in python for django.....

2013-02-05 Thread Avnesh Shakya
Here i want to explore database API but it's generating error.. C:\mysite>python manage.py shell Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from polls.mo

Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
thanks. i m adding my polls file... On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov wrote: > 1) please provide your model Poll > 2) are you run syncdb ? > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > 2013/2/6 Avnesh Shakya : > &g

Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
thanks.. i have added my polls.models file On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov wrote: > 1) please provide your model Poll > 2) are you run syncdb ? > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > 2013/2/6 Avnesh Shakya : >

Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
ams) DatabaseError: no such column: polls_poll.pub_date >>> On Wed, Feb 6, 2013 at 2:49 PM, Jani Tiainen wrote: > Now look your Poll model and try to find field "pub_date" there... > > :) > > 6.2.2013 11:03, Avnesh Shakya kirjoitti: > >> thanks.. i

plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Avnesh Shakya
I have checked many time, even i have deleted my project n i have created new project again and create new model but error is occurred again n again.. i m beginner so plz help me C:\mysite>python manage.py shell Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on w

Re: plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Avnesh Shakya
ya i have executed python manage.py syncdb...but still it's giving error... On Wed, Feb 6, 2013 at 7:01 PM, Thomas Weholt wrote: > Have you executed python manage.py syncdb? > > Thomas > > On Wed, Feb 6, 2013 at 2:22 PM, Avnesh Shakya > wrote: > > > &g

please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
please help me,i m beginner i m creating my registration model but how can i write password field? thanks in advance... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send a

how to password will come in hidden form in django?

2013-02-14 Thread Avnesh Shakya
i have created my Userinfo model for registration, but password is showing means it's not filling in hidden form so what will i have to do for it... please help me class Userinfo(models.Model): full_name=models.CharField(max_length=30) username=models.CharField(max_length=20) email_address=

Re: please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
Khohlov wrote: > Take a look at the examples > https://docs.djangoproject.com/en/dev/topics/auth/default/ > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Fri, Feb 15, 2013 at 7:23 AM, Avnesh Shakya wrote: > >> please help me,i m

error in my templates

2013-02-18 Thread Avnesh Shakya
NoReverseMatch at / *Reverse for 'myapp_about' with arguments '()' and keyword arguments '{}' not found. i m adding here files, plz help me.. thanks in advance * -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

error in templates...

2013-02-19 Thread Avnesh Shakya
Hello, I'm stuck in teplagte page. error is occuring here after runserver..error.. NoReverseMatch at / Reverse for '' with arguments '()' and keyword arguments '{}' not found. I can't figure out why I'm getting the error, plz tell me, i h

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
, Thomas Weholt wrote: > It means you haven't added any url matching / in your urlconfig, but > it's hard to give a good answer without a bit more information. Have > you completed the django tutorial which explains how these things > work? > > Thomas > > On Tue, Feb 1

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya wrote: > ya i have completed and i m just doing copy n paste from from tutorial but > there is no error but i m facing this error again n again... > https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902 > can i add my p

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
thanks On Tue, Feb 19, 2013 at 4:28 PM, Pankaj Singh wrote: > Hey Avnesh, > > In your templates you have written following lines > > homeabout href="{% url archive %}">archivecontact > > Change them to following, notice single quotes surrounding url pattern name >

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
> > On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya wrote: > >> hi pankaj, i have got again error same.. >> if i change >> >> from django.conf.urls.defaults import * >> urlpatterns= patterns('myapp.views', >> url(r'^$','

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
;template": "about.html"}, > name="about"), > url(r'^contact/$', direct_to_template, {"template": > "contact.html"}, > name="contact"), > url(r'^archive/$', direct_to_template, {"te

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, if you have any mini project on django, plz share, i m beginner it can be helpful for me... plz share if u have.. thanks alot On Tue, Feb 19, 2013 at 5:58 PM, Avnesh Shakya wrote: > hi, i m adding my views.py file > > > > On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh

how to create attribute for image in django models.py

2013-02-20 Thread Avnesh Shakya
plz help me... i want to store image in database using model,how is it possible...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@

Re: how to create attribute for image in django models.py

2013-02-20 Thread Avnesh Shakya
thanks alot plz share any small project for beginners, if u have On Wed, Feb 20, 2013 at 6:02 PM, Tom Evans wrote: > On Wed, Feb 20, 2013 at 12:26 PM, Avnesh Shakya > wrote: > > plz help me... i want to store image in database using model,how is it > > possible

error in image display

2013-02-20 Thread Avnesh Shakya
i have created a model for image and added in admin. It's uploading images fine but when i m trying to display it's generating error this Using the URLconf defined in chh.urls, Django tried these URL patterns, in this order: 1. ^admin/ The current URL, photos/photos/DSCN0811.JPG, didn'

Re: error in image display

2013-02-20 Thread Avnesh Shakya
thanks all i have got my error... i was not creating a folder in photos that's why it generates error and url problem i have set it and now it's work fine thanks On Thu, Feb 21, 2013 at 11:01 AM, Avnesh Shakya wrote: > i have created a model for image and added in admin. I

problem in displaying data on html

2013-02-28 Thread Avnesh Shakya
hi i have one problem, i want to display data from database on html page all data is displaying but one attribute(university name) which i defined as models.ManyToManyField(University) is not being displyed, it's not generating error but it showing msz on html page- instead of showing universi

Re: problem in displaying data on html

2013-02-28 Thread Avnesh Shakya
thanks i got it thanks On Thu, Feb 28, 2013 at 7:19 PM, Roberto López López wrote: > > If you just output a m2m field that's normal. If you rather prefer to > iterate over it and show all the related objects, use a for loop... > > > On 02/28/2013 02:43 PM, Avnesh Shak

error in filling data in dtabase through admin page..

2013-02-28 Thread Avnesh Shakya
hi, i have got one error during adding data in database though admin page, actually it was working fine, but i made some attributes optional, now it's generating error.. i m adding m models.py ,plz help me.. thanks in advance -- You received this message because you are subscribed to the Google

error in filling data in database through admin page

2013-02-28 Thread Avnesh Shakya
hi, i have got one error during adding data in database though admin page, actually it was working fine, but i made some attributes optional, now it's generating error.. i m adding m models.py , error-- " needs to have a value for field "course" before this many-to-many relationship can

Re: error in filling data in database through admin page

2013-03-01 Thread Avnesh Shakya
ya i m adding now please help me On Fri, Mar 1, 2013 at 8:43 PM, C. Kirby wrote: > It would be helpful to see the model definition(s) and the admin.py if you > wrote one > > On Friday, March 1, 2013 1:06:34 AM UTC-6, Avnesh Shakya wrote: >> >> hi, >> i have go

error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
hi i have got error- IntegrityError at /register/ lrntkr_student.contact_no may not be NULL ,when i was trying to input data through html page(register.html), but data is not updating in database and generating that error. please help me i m unable to find this error. thanks -- You received th

Re: error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
thanks i got it regards, Avnesh shakya On Thu, Mar 7, 2013 at 10:09 AM, Avnesh Shakya wrote: > hi i have got error- IntegrityError at /register/ > > lrntkr_student.contact_no may not be NULL > > ,when i was trying to input data through html page(register.html), but > data

how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
I am using an anchor tag and have to access its content in python. I have to access the 'text' from this. in html page-- {% for c in courses%} {{c.title}}{{c.stream}} i want to get {{c.stream}} value so that i can use it in views.py i want to filter the content acoording to it, and want to disp

Re: how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
UTC, Avnesh Shakya wrote: > >> I am using an anchor tag and have to access its content in python. I have >> to access the 'text' from this. >> >> in html page-- >> >> {% for c in courses%} >> >> {{c.title}}**> href="cd.html"

Re: how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
) ctx = {'courses':courses} return render_to_response('homepage/index.html', ctx) thanks regards, avnesh shakya On Fri, Mar 8, 2013 at 3:40 PM, Avnesh Shakya wrote: > Actually, i have lot of different-2 stream, now i want to make it as link, > so that i can click on

How to display large data by scrolling html page using python and django?

2013-03-10 Thread Avnesh Shakya
hi, i have stored data in database,but it has large data,so it's showing only 20-25 rows of data on html page. I want to show all data using scrolling. how is it possible? Please help me Thanks -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: How to display large data by scrolling html page using python and django?

2013-03-11 Thread Avnesh Shakya
2013 12:41:05 AM UTC-4, Avnesh Shakya wrote: >> >> hi, >> i have stored data in database,but it has large data,so it's showing >> only 20-25 rows of data on html page. I want to show all data using >> scrolling. how is it possible? >> Please help me...

error in installing django-facebook

2013-03-11 Thread Avnesh Shakya
i m trying to install django-facebook but it's showing error, i unable to catch it please help me. error - C:\django-facebook-5.0.2prealpha>python setup.py install No handlers could be found for logger "django_facebook" Traceback (most recent call last): File "setup.py", line 11, in from

error- A server error occurred. Please contact the administrator.

2013-03-11 Thread Avnesh Shakya
hi, I m trying to login on my site through my own site, so i have installed django-facebook, i have set setting in setting.py. Now i m trying to run server but it's showing error. plz help me.. i m unable to find out.. Thanks -- You received this message because you are subscribed to the

error

2013-03-13 Thread Avnesh Shakya
I have set facebook button for login through facebook on my site, but when i m clicking on that button, it's showing this error, i m unable to find,pleaze help me... I m using 127.0.0.1:8000 as domain name. Error An error occurred. Please try again later. API Error Code: 191 API Error Descriptio

how to get data from other website after login on other sites through my site?

2013-03-15 Thread Avnesh Shakya
only course performance data please help me... i m unable to find out solution of this problem thanks in advance.. regards, Avnesh shakya -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

error in sql..

2013-03-20 Thread Avnesh Shakya
Hi,i m facing problem in mysql line, plz help me,i m unable to get solution... import MySQLdb import urllib import json from bs4 import BeautifulSoup tdd=json.loads(urllib.urlopen('https://www.coursera.org/maestro/api/topic/list2').read()) tsl=tdd['unis'] try: conn=MySQLdb.connect(host=

my project is not working in virtualenv in ubuntu?

2013-03-31 Thread Avnesh Shakya
hi, please tell me,what is issue with me, I am using virtualenv in ubuntu, i am fine in window,but here it's not showing admin pages, I have installed apache2 and wsgi, i want to run my project through my own apache2.but its not showing my pages- /var/www/mydomain.com/index.py import os

error with new version of django.

2013-04-01 Thread Avnesh Shakya
hi, I was using django 1.4 version in window 7. now i am using django 1.5 version using virtualenv in ubuntu. now i am running my old project it's generating error. error is - NoReverseMatch at / 'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs.

Re: error with new version of django.

2013-04-01 Thread Avnesh Shakya
.html" %} Thanks to all On Mon, Apr 1, 2013 at 1:58 PM, Avnesh Shakya wrote: > hi, > I was using django 1.4 version in window 7. now i am using django 1.5 > version using virtualenv in ubuntu. now i am running my old project it's > generating error. > > error is -

Re: couldn't render a media image via a template

2013-04-06 Thread Avnesh Shakya
try it.. create one more folder media and put that media folder inside this new folder and then run.. regards, Avnesh Shakya On Sat, Apr 6, 2013 at 4:11 PM, Fatih Tiryakioglu wrote: > I want to render an image via a template, but the template can't show > image, but only a small i

Re: djano user registration form and login(full example)

2013-04-16 Thread Avnesh Shakya
This error is occur when you're saving the member, not the user. When creating the member, you are not assigning the user. On Wed, Apr 17, 2013 at 10:45 AM, sachin wrote: > I m still stuck with > > Exception Type: IntegrityError > Exception Value: column user_id is not unique > > Whenev

how to fatch data from mysql database using jQuery in my django project?

2013-04-17 Thread Avnesh Shakya
hi, please tell me someone, I want to fetch data dynamically using jquery from database.. how it is possible, give me a example... please help me, i need it in my project. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

how to get called function automatically inside views.py?

2013-05-02 Thread Avnesh Shakya
hi, I am creating a function inside the views.py, I want to call this function automatically according to timing which i m using through apscheduler. how is it possible, please tell me. my views.py file # Create your views here. import simplejson as json from apps.learning.models imp

css and js in working in my project.

2013-05-03 Thread Avnesh Shakya
hi, css and js file in not working in my project, please tell me about it, I am unable to get problem. my project is learnt. learnt > apps > lrntkr(my app) > models.py and views.py. learnt > learnt > settings.py and urls.py and wsgi.py. learnt > static > javascripts and stylesheet and other

Re: how to get called function automatically inside views.py?

2013-05-03 Thread Avnesh Shakya
hi, please tell me. it's urgent. On Thursday, May 2, 2013 7:01:33 PM UTC+5:30, Avnesh Shakya wrote: > > > hi, > I am creating a function inside the views.py, I want to call this > function automatically according to timing which i m using through > apscheduler. how

Re: how to get called function automatically inside views.py?

2013-05-03 Thread Avnesh Shakya
thanks but if i want to get a function called autometically, when i run 127.0.0.1:8000/ which defined inside views.py. how is it possible. On Fri, May 3, 2013 at 4:00 PM, Tom Evans wrote: > On Fri, May 3, 2013 at 11:04 AM, Avnesh Shakya > wrote: > > hi, please tell me.

error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-08 Thread Avnesh Shakya
hi, I am facing error - MultiValueDictKeyError at /profilesetting/ramuss "Key 'name' not found in " I am trying to upload image using dynamically(using javascript), but when I click on upload button after selecting image, it's showing this error. my html page contain- {% block scriptquer

Re: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Avnesh Shakya
s Phone > -- > From: Avnesh Shakya > Sent: 5/9/2013 5:31 AM > To: django-users@googlegroups.com > Subject: error - MultiValueDictKeyError at /profilesetting/ramuss > > hi, > I am facing error - > MultiValueDictKeyError at /profilesetting/r

problem with inserting data through sqlite manually.

2013-05-10 Thread Avnesh Shakya
Hi, I am inserting data into my models using sqlite3 manually, but it's not storing without id, it's generating error, this Id is generated automatically in django. how is it possible that i can store data without taking id value. please help me out. thanks. -- You received this me

error in AUTHENTICATION using socialregistration

2013-05-16 Thread Avnesh Shakya
hi, I am getting error - NoReverseMatch at /login/ u'facebook' is not a registered namespace inside 'socialregistration' when I am clicking on login link. I have installed all required things using documantation - http://django-socialregistration.readthedocs.org/en

how to create google app for login in django project?

2013-05-17 Thread Avnesh Shakya
hi, I want to create login button in my django login page, so i have to create app first for creating button, but i am unable to create app in google. how to create google app for login, please tell me about, and link, so that i can create app in google for authentication. Thanks -- You r

Re: Django setting.py issue

2013-05-19 Thread Avnesh Shakya
Hi, First set your databasename in settings.py file 'Name': 'db' then try it. hopefully it will be helpful. regards, Avnesh On Mon, May 20, 2013 at 11:44 AM, Sun Simon wrote: > *Basic Facts:* > OS: Windows > Python version: 2.7 > Django Version: Instant Django( > https://groups.google.c

Re: IDE django with perforce

2013-05-29 Thread Avnesh Shakya
Try Pycharm, but use always eclipse. eclipse is better than it. Regards, Avnesh Shakya On Thu, May 30, 2013 at 10:53 AM, Aswani Kumar wrote: > hi guys, > > we are having problem with eclipse 3.8 with pydev perforce plugins on > ubuntu 13.04 > > *problem :* after usi