Re: utf8-problems
Yes, you are right. The mysql was not installed correctly. I uninstall that. -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason of my
def bookmark_save_page(request): if request.method == 'POST': form = BookmarkSaveForm(request.POST) if form.is_valid(): # Create or get link. link, dummy = Link.objects.get_or_create( url=form.cleaned_data['url'] ) # Create or get bookmark. bookmark, created = Bookmark.objects.get_or_create( user=request.user, link=link ) # Update bookmark title. bookmark.title = form.cleaned_data['title'] # If the bookmark is being updated, clear old tag list. If not created: bookmark.tag_set.clear() # Create new tag list. tag_names = form.cleaned_data['tags'].split() for tag_name in tag_names: tag, dummy = Tag.objects.get_or_create(name=tag_name) bookmark.tag_set.add(tag) # Save bookmark to database. bookmark.save() return HttpResponseRedirect( '/user/%s/' % request.user.username ) else: form = BookmarkSaveForm() variables = RequestContext(request, { 'form': form }) return render_to_response('bookmark_save.html', variables) -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. def bookmark_save_page(request): if request.method == 'POST': form = BookmarkSaveForm(request.POST) if form.is_valid(): # Create or get link. link, dummy = Link.objects.get_or_create( url=form.cleaned_data['url'] ) # Create or get bookmark. bookmark, created = Bookmark.objects.get_or_create( user=request.user, link=link ) # Update bookmark title. bookmark.title = form.cleaned_data['title'] # If the bookmark is being updated, clear old tag list. If not created: bookmark.tag_set.clear() # Create new tag list. tag_names = form.cleaned_data['tags'].split() for tag_name in tag_names: tag, dummy = Tag.objects.get_or_create(name=tag_name) bookmark.tag_set.add(tag) # Save bookmark to database. bookmark.save() return HttpResponseRedirect( '/user/%s/' % request.user.username ) else: form = BookmarkSaveForm() variables = RequestContext(request, { 'form': form }) return render_to_response('bookmark_save.html', variables)
Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o
Thank for your(Dj Gilcrease) answer sir. I got the correct answer for the problem. On Fri, Jun 4, 2010 at 5:28 PM, Dj Gilcrease wrote: > syntax error is because of capitol 'I' in if > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o
hello Vinicius Mendes sir, You are right. I had done the certain mistake only. I corrected that. Thankyou for your acknowledgement. On Fri, Jun 4, 2010 at 5:36 PM, Vinicius Mendes wrote: > I guess it is because the 'I' is uppercase. Try all the line in lowercase. > Atenciosamente, > Vinicius Mendes > Solucione Sistemas > vinic...@solucione.info > > > On Fri, Jun 4, 2010 at 8:54 AM, kanniga sivasubramanian > wrote: >> >> def bookmark_save_page(request): >> if request.method == 'POST': >> form = BookmarkSaveForm(request.POST) >> if form.is_valid(): >> # Create or get link. >> link, dummy = Link.objects.get_or_create( >> url=form.cleaned_data['url'] >> ) >> # Create or get bookmark. >> bookmark, created = Bookmark.objects.get_or_create( >> user=request.user, >> link=link >> ) >> # Update bookmark title. >> bookmark.title = form.cleaned_data['title'] >> # If the bookmark is being updated, clear old tag list. >> If not created: >> bookmark.tag_set.clear() >> # Create new tag list. >> tag_names = form.cleaned_data['tags'].split() >> for tag_name in tag_names: >> tag, dummy = Tag.objects.get_or_create(name=tag_name) >> bookmark.tag_set.add(tag) >> # Save bookmark to database. >> bookmark.save() >> return HttpResponseRedirect( >> '/user/%s/' % request.user.username >> ) >> else: >> form = BookmarkSaveForm() >> variables = RequestContext(request, { >> 'form': form >> }) >> return render_to_response('bookmark_save.html', variables) >> >> -- >> 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 this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o
hello Venkatraman sir, I accept your suggestion. I will send only my questions in body. Thankyou for your acknowledgement. On Fri, Jun 4, 2010 at 5:36 PM, Venkatraman S wrote: > Please do not send the email in teh subject line :) > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o
hello Karen Tracey sir, Thank you for your acknowledgement.I was corrected the problem. On Fri, Jun 4, 2010 at 6:31 PM, Karen Tracey wrote: > On Fri, Jun 4, 2010 at 7:54 AM, kanniga sivasubramanian > wrote: >> >> If not created: > > Don't uppercase the I in if. > > Karen > -- > http://tracey.org/kmt/ > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django ORM memory leaks in standalone script
hello yakovenko sir, I think your databse_user and database_password are incorrect. I had affected by this problem. You will give correct username and password of mysql. On Sat, Jun 5, 2010 at 1:02 AM, tmitchell wrote: > Holy reading comprehension, Batman. Just saw you have DEBUG off, > ignore previous comment. > > On Jun 4, 10:34 am, Кирилл Яковенко > wrote: >> I have tried this method, but it didn't give any results. >> I suspect that this is due to incorrect settings of the database or connect >> to it. >> >> 2010/6/4 Dj Gilcrease >> >> >> >> > On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: >> > > import os >> > > import sys >> > > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' >> > > sys.path.append('/md/lib') >> > > from django.db import close_connection, reset_queries >> > > from md.mddata.models import Info >> > > def test(): >> > > for i in Info.objects.all(): >> > > pass >> >> > do >> >> > for i in Info.objects.all().iterator(): #or just .iterator() forget which >> >> > and you wont leak >> >> > -- >> > 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 this group, send email to >> > django-users+unsubscr...@googlegroups.com> > groups.com> >> > . >> > For more options, visit this group at >> >http://groups.google.com/group/django-users?hl=en. > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: error about django and mssql
hello CCC, I think you didn't create the database in the mysql. First you create the database in mysql. And then you will change settings.py as a same database name. Finally you give the command python manage.py syncdb. On Tue, Jun 8, 2010 at 11:50 AM, CCC wrote: > hi,now I use django-mssql and sqlserver2008, > but I found that it always appear some errors when I do some > command,for example:python manage.py syncdb > the error likes coding error is blow: > raise OperationalError(e, "Error opening connection: " + > connection_string) > ngo.db.backends.sqlserver_ado.dbapi.OperationalError: > (com_error(-2147352567, > xb7\xa2\xc9\xfa\xd2\xe2\xcd\xe2\xa1\xa3', (0, u'Microsoft OLE DB > Provider for > L Server', u'[DBNETLIB][ConnectionOpen (Connect()).]SQL Server \u4e0d > \u5b58\u > 8\u6216\u62d2\u7edd\u8bbf\u95ee\u3002', None, 0, -2147467259), None), > 'Error > ning connection: PROVIDER=SQLOLEDB;DATA > SOURCE=115.238.106.100,60433;Network > rary=DBMSSOCN;Initial Catalog=rvdb_1;UID=sa;PWD=asd.1234') > > > When I use Microsoft SQL Server Management studio client ,I can > success connect the database. > anyone can help ?Thanks > > -- > 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 this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.