Re: placing views and models in configuration root

2014-04-27 Thread Andreas Bloch
> > lrighty then - I will create an app then... -- 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...@googlegroups.com. To post to this

Re: placing views and models in configuration root

2014-04-27 Thread Venkatraman S
On Mon, Apr 28, 2014 at 11:57 AM, Andreas Bloch wrote: > is it bad practice to create a views.py and models.py file and place it in > the configuration root? (the folder that is created when you run > "startproject " which contains the settings, urls, and uwsgi > file") > An unequivocal 'Yes' :)

placing views and models in configuration root

2014-04-27 Thread Andreas Bloch
is it bad practice to create a views.py and models.py file and place it in the configuration root? (the folder that is created when you run "startproject " which contains the settings, urls, and uwsgi file") -- You received this message because you are subscribed to the Google Groups "Django

Re: Django ユーザー登録について

2014-04-27 Thread Joseph Mutumi
Hi there, I think your problem is you have not initialized attendance that you use at `instance = attendance`. So it is just using the name of your view function which also happens to be 'attendance' and showing you that error. Initialize to model object with the usual: Attendence_data.objects.get

Re: [OT]Code Review As a Service

2014-04-27 Thread Venkatraman S
An old thread that I started and over the past few years, and I want to offer Code-Review as a Service to anyone wants their code to be reviewed. I have a few cycles free and want to slowly get back into this. Am not too much worried about the payment, but am looking for enthusiastic and honest p

Re: Django ユーザー登録について

2014-04-27 Thread Lachlan Musicman
You need to provide more information: like the models, and the copy of the "copy and paste view" output. cheers L. On 28 April 2014 12:41, hito koto wrote: > Hi, > I have this error , why? > > Request Method: POST Request URL: http://articles/attendance/11/ Django > Version: 1.6.2 Excepti

Re: Django ユーザー登録について

2014-04-27 Thread hito koto
Hi, I have this error , why? Request Method: POST Request URL: http://articles/attendance/11/ Django Version: 1.6.2 Exception Type: AttributeError Exception Value: 'function' object has no attribute '_meta' Exception Location: /usr/lib/python2.6/site-packages/django/forms/models.py in

Django With Xampp and MySQL - Creating Tables, Models.py not working(Windows)

2014-04-27 Thread zanemcadams
I have tried out Django with the development server that comes with it - and I never had any issues. I decided to try it out with xampp as I'll be hosting my web app on a VPS soon. The problem I'm having is that whenever I try to use the syncdb command after creating a table in the models.py fil

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread m1chael
You really shouldn't be learning with the dev version as Babatunde Akinyanmi pointed out, but, i'm curious enough to respond have you tried to install Django toolbar to figure out what template is actually being loaded? Maybe that will give you a good idea on where to troubleshoot Mike On Su

Re: Tutorial - Customize the admin look and feel

2014-04-27 Thread Babatunde Akinyanmi
This does not answer the question but you really shouldn't be learning with the dev version On 27 Apr 2014 15:38, "rob25" wrote: > Hello, > > I was following the instructions to create a basic poll application with > django 1.8 (dev), but now I'm stuck to this > paragraph

problem with BruteBuster

2014-04-27 Thread ogi
Hi I have a django project with django version 1.5.1 and django-brutebuster version 0.1.8. Although django-brutebuster is properly installed and configured (3 allowed attempts), I noticed that the failed attempts are not saved in the database ('BruteBuster_failedattempt' table has no entries) an

Re: What is different of handling character code between pure Python and Django?

2014-04-27 Thread François Schiettecatte
You should check the encoding of stdout when running from django, I suspect that it is plain ascii rather than utf-8 which is what you are probably getting when running standalone. Check sys.getdefaultencoding(). Note that this has nothing to do with django, just the way stdin/stdout are set up

Tutorial - Customize the admin look and feel

2014-04-27 Thread rob25
Hello, I was following the instructions to create a basic poll application with django 1.8 (dev), but now I'm stuck to this paragraph . My template doesn't override the original. This is the instruction a

change the default value choicefield

2014-04-27 Thread Helton Alves
Hi guys, I'm new here on the list. I have a question. yesterday I needed create a form with some fields and one the field was using select with choicefield. I needed edit in label default of select. was as follows: I wanted like this: Your state I done like this: get the tuple wit

What is different of handling character code between pure Python and Django?

2014-04-27 Thread Sugita Shinsuke
Hi there I’d like to run Java code via Django. The Java code, javaprogram use like below. — java javaprogram [text] [file_name] — text is parameter. multi-byte character is also okey. file_name is generate file name. So, I run the stand-alone Python program like below could run fine. — java_fi

Re: Django and Zinnia + DjangoCMS

2014-04-27 Thread Silvio Siefke
Hello. On Thu, 24 Apr 2014 09:05:40 -0700 (PDT) Jared Nielsen wrote: > Theming Mezzanine, once you wrap your head around it, is very easy. > Check out these links to get you started: > http://theneum.com/blog/styling-twitter-bootstrap-and-mezzanine/ > http://rosslaird.com/blog/customizing-mezzan