Re: How to make django's mysql connections to use utf8mb4 ?

2013-02-19 Thread Chris Streeter
There is some discussion on this ticket: https://code.djangoproject.com/ticket/18392 The ticket also requires that a new version of MySQLdb be running to properly recognize the type. - Chris On Mon, Feb 18, 2013 at 4:22 PM, Peter of the Norse wrote: > Triple check your encoding type on the da

Re: pyc files included in the package for Django 1.4.4

2013-02-19 Thread Daniel Izquierdo
On Wednesday, February 20, 2013 12:53:18 PM UTC+9, Karen Tracey wrote: > > On Tue, Feb 19, 2013 at 10:40 PM, Daniel Izquierdo > > > wrote: > >> Hi, >> >> The packages for Django 1.4.4 and 1.3.6 includes a few pyc files: >> >> ./Django-1.4.4/django/contrib/sessions/management/__init__.pyc >> ./Dja

Re: pyc files included in the package for Django 1.4.4

2013-02-19 Thread Karen Tracey
On Tue, Feb 19, 2013 at 10:40 PM, Daniel Izquierdo < daniel.izquie...@gmail.com> wrote: > Hi, > > The packages for Django 1.4.4 and 1.3.6 includes a few pyc files: > > ./Django-1.4.4/django/contrib/sessions/management/__init__.pyc > ./Django-1.4.4/django/conf/locale/__init__.pyc > ./Django-1.4.4/d

pyc files included in the package for Django 1.4.4

2013-02-19 Thread Daniel Izquierdo
Hi, The packages for Django 1.4.4 and 1.3.6 includes a few pyc files: ./Django-1.4.4/django/contrib/sessions/management/__init__.pyc ./Django-1.4.4/django/conf/locale/__init__.pyc ./Django-1.4.4/django/conf/locale/en/__init__.pyc ./Django-1.4.4/django/conf/locale/en/formats.pyc This has broken m

looking for a Django app for annual subscriptions

2013-02-19 Thread Mike Dewhirst
Does anyone know of an annual subscriptions application for Django? I want to be able to offer a service to multiple organisations whereby their employees can subscribe to a serialised product which is paid for by subscription and each organisation can see what it is funding. I also want the o

Re: i need help

2013-02-19 Thread wassim bchini
thx ryan :) > Please take a look at the Django tutorial[1] and then feel free to > ask specific questions. Also, when posting, try to put something more > meaningful[2] than "i need help" in the subject. > > - Ryan > > 1. https://docs.djangoproject.com/en/1.4/intro/tutorial01/ > 2. http://w

Re: I need help

2013-02-19 Thread Carlos Aguilar
I fix the error. Thank you for your time. The error was caused for a bad access to delete function. Thanks againg. Best Regards On Tue, Feb 19, 2013 at 5:55 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar wrote: > >> I am trying to

Re: I need help

2013-02-19 Thread Russell Keith-Magee
On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar wrote: > I am trying to use the User model outside of django app, but without > successful. > > This is my imports section: > > from django.core.management import setup_environ > from htdjango import settings > setup_environ(settings) > > from django

form media (css+js)

2013-02-19 Thread yakoub abaya
i read this page : https://docs.djangoproject.com/en/1.4/topics/forms/media but i don't understand how those files gets rendered into the page template is it our responsibility when creating template files to make sure those form media files gets rendered ? if we take django/contrib/admin/templat

ANNOUNCE: Django 1.5 release candidate 2, Django 1.4.4, Django 1.3.6 (security releases)

2013-02-19 Thread James Bennett
We've issued several security releases today. Details are in the blog post: https://www.djangoproject.com/weblog/2013/feb/19/security/ We recommend everyone carefully read this one, as it has an end-user-visible change requiring action beyond simply upgrading your Django package. -- You receive

Re: django-quickview v0.1 released - proof-of-concept/comments wanted

2013-02-19 Thread Derek
When I try and access the site: https://bitbucket.org/weholt/django-quickview I get an error: You do not have access to this repository On Monday, 18 February 2013 21:58:14 UTC+2, Thomas Weholt wrote: > > Hi, > > I looked for django-announcements to post this in, but didn't find at > groups.g

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thanks Bill, for taking the time to explain this. Regards, Frank On Monday, February 18, 2013 1:17:42 PM UTC-5, frocco wrote: > > Hello, > I have a site under apache www root. > www >mysite > templates >media >static > > I am following the two-scoops book. > The problem is th

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
Yes. The name is just to remind me that the stuff there is for apache. The only times that Django touches it is during collect static, or during file or image upload (these typically are stored under MEDIA_ROOT. But all these directories are things that you can configure. Do what makes the most

returned json + wz_tooltip + jquery carousel

2013-02-19 Thread MikeKJ
view: def json(request,id): g = ProductImage.objects.get(pk=id) large = g.image.url picture = make_thumbnail(g.image.url, maxwidth=400, maxheight=300, root=settings.MEDIA_ROOT, url_root=settings.MEDIA_URL) return JsonResponse({'picture': picture, 'large': large, }) template head

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thank you, So you have htdocs directory under each project on your website? so mine might look like. ntw htdocs assets On Tuesday, February 19, 2013 11:18:19 AM UTC-5, ke1g wrote: > > Yes, 'assets' would work, and yes your would put your static sources there. > > There are many poss

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
Yes, 'assets' would work, and yes your would put your static sources there. There are many possibilities. I actually tend to make STATIC_ROOT be PROJECT_ROOT/htdocs/static and MEDIA_ROOT be PROJECT_ROOT/htdocs/media and add PROJECT_ROOT/static to STATICFIELS_DIRS. I can also put things like robo

Django-Jython installation trouble (total newbie :( )

2013-02-19 Thread Kristine Richard
Hello. I am trying to compile a whole bunch of benchmarking suites accross many languages and one I am interested in (unladen_swallow) has a dependency on Django. I am not looking to do development with Django OR Python, and I'm not particularly knowledgeable about either, they're not really

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread frocco
Thanks for the help. So STATICFILES_DIRS should be something line 'assets' and my static headings and css/js files would live there? On Tuesday, February 19, 2013 10:11:40 AM UTC-5, ke1g wrote: > > > > On Mon, Feb 18, 2013 at 1:17 PM, frocco >wrote: > >> Hello, >> I have a site under apache www r

Re: Question about not hardcoding paths in settings.py

2013-02-19 Thread Bill Freeman
On Mon, Feb 18, 2013 at 1:17 PM, frocco wrote: > Hello, > I have a site under apache www root. > www >mysite > templates >media >static > > I am following the two-scoops book. > The problem is that my app is looking for templates at www/templates > Here is my settings. > Thank

Foreign Key relationships and On Delete

2013-02-19 Thread jvc26
Hi, quick question: When I delete an object with foreign key relations for example, a User, with several related objects, are these child objects deleted at a low level, or via their delete() methods? Essentially, I am overriding delete() to implement a soft-delete with setting flags on the obj

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, You are not using reverse in your views.py. I'm not sure what is causing your problem. 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.. Django By Example - http://lightbird.net/dbe2/ Sincerely, Pankaj Singh http://abou

Re: Call Class based view from another class based view

2013-02-19 Thread Tom Evans
On Tue, Feb 19, 2013 at 12:14 PM, psychok7 wrote: > What do you mean not returnig?? i have a return statement. how should i do > it? > You have this code: if u.username == username: if request.GET.get('action') == 'delete': #some logic here and then: ShowAppsView.as_v

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 wrote: > >> Hey, >> >> E

Re: Call Class based view from another class based view

2013-02-19 Thread psychok7
Thats it, it now works. thanks a bunch On Tuesday, February 19, 2013 12:26:35 PM UTC, JirkaV wrote: > > You have > > ShowAppsView.as_view()(self.request) > > at the end of the code you pasted below. That means that you get result of > the ShowAppsView which gets immediatelly discarded ("forgotten

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, i m adding my views.py file On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh wrote: > Hey, > > Every things worked for me when I used your original templates and > following urls.py. > > As you can notice, I have used generic view as I did not have original > view function. > > Please share vi

Re: Call Class based view from another class based view

2013-02-19 Thread Jirka Vejrazka
You have ShowAppsView.as_view()(self.request) at the end of the code you pasted below. That means that you get result of the ShowAppsView which gets immediatelly discarded ("forgotten") because you don't do anything with it. You probably want return ShowAppsView.as_view()(self.request) but tha

Re: Call Class based view from another class based view

2013-02-19 Thread psychok7
What do you mean not returnig?? i have a return statement. how should i do it? > if u.username == username: > > > cities_list=City.objects.filter(user_id__exact=self.current_user_id(request)).order_by('-kms') > > > > allcategories = Category.objects.all() > > allcities = City.objects.all()

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, Every things worked for me when I used your original templates and following urls.py. As you can notice, I have used generic view as I did not have original view function. Please share views.py because it's hard to help help without that. FYI, you can test reverse match by using django.cor

Re: Call Class based view from another class based view

2013-02-19 Thread Tom Evans
On Tue, Feb 19, 2013 at 11:34 AM, psychok7 wrote: > hi, i am trying to call a class based view and i am able to do it, but for > some reason i am not getting the context of the new class > > class ShowAppsView(LoginRequiredMixin, CurrentUserIdMixin, TemplateView): > template_name = "accounts/thing

Re: Django Project on Heroku

2013-02-19 Thread Jingqiang Zhang
Okay,I have removed that app from heroku. 在 2013年2月19日星期二UTC+9上午9时15分06秒,Russell Keith-Magee写道: > > Hi Jingiqang Zhang, > > I'm not clear on what you've done here. > > If you're proposing this as a new format/style for the Django project > website, I have to advise that this is not a good start -

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
ya i have done it but error has occured again.. On Tue, Feb 19, 2013 at 5:04 PM, Pankaj Singh wrote: > Hey, > > I asked you to make changes in templates (i.e. home.html, about.html etc.) > and not urls.py. > > > Sincerely, > Pankaj Singh > http://about.me/psjinx > > > On Tue, Feb 19, 2013 at 4:5

Call Class based view from another class based view

2013-02-19 Thread psychok7
hi, i am trying to call a class based view and i am able to do it, but for some reason i am not getting the context of the new class class ShowAppsView(LoginRequiredMixin, CurrentUserIdMixin, TemplateView): template_name = "accounts/thing.html" def compute_context(self, request, username): u = g

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey, I asked you to make changes in templates (i.e. home.html, about.html etc.) and not urls.py. Sincerely, Pankaj Singh http://about.me/psjinx 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.defau

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi pankaj, i have got again error same.. if i change from django.conf.urls.defaults import * urlpatterns= patterns('myapp.views', url(r'^$','home',name="home"), url(r'^about/$','about',name="about"), url(r'^contact/$','contact',name="contact"), url(r'^contact/$','archive',n

Re: error in templates...

2013-02-19 Thread Pankaj Singh
Hey Avnesh, In your templates you have written following lines homeaboutarchivecontact Change them to following, notice single quotes surrounding url pattern name homeaboutarchivecontact Sincerely, Pankaj Singh http://about.me/psjinx On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya wrote: >

Re: Is it necessary to restart server after a change?

2013-02-19 Thread Gabriel - Iulian Dumbrava
I'm using a monitor.py script which monitors any .py files for a change and triggers a reload in case one is changed. This is a great way to stay away from touching the wsgi script any time you change something. I recommend this for development process only. Read here

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 page for help.

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
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 page for help. i need your help plz.. On Tue, Feb 19, 2013 at 3:39 PM, Thoma

Re: error in templates...

2013-02-19 Thread Thomas Weholt
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 19, 2013 at 11:04 AM, Avnesh Shakya wrote: > Hello, I'm stuck in te

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 have totally confused here. thanks avnesh shak

Re:

2013-02-19 Thread Zhao Quan
Thanks Pankaj. Its my typo issue. On Tue, Feb 19, 2013 at 3:25 PM, Pankaj Singh wrote: > Right. 'UsernaBaseProfile' should be 'UserenaBaseProfile'. > > > Sincerely, > Pankaj Singh > http://about.me/psjinx > > > On Tue, Feb 19, 2013 at 12:53 PM, Zhao Quan wrote: > >> thanks I resolve that issu