Problemas con Formato numerico en django

2014-04-02 Thread Norma Bizzozzero
Me gustaría si pudieran ayudarme, quiero que al cargar en el dato identifique los valores y agregue el punto de miles. habia leido que en el settings agregue USE_L10N = True USE_THOUSAND_SEPARATOR = True THOUSAND_SEPARATOR = '.' DECIMAL_SEPARATOR = ',' y en el template, pero el problema es que

Re: ORM Question

2014-04-02 Thread Justin Holmes
I think you misunderstand: I am not actually tracking llama herds. :-) This is just example code; I haven't actually tested it in the way that you suggest. The problem isn't with this code in particular, it's with this concept in general. This is a question I have had again and again in the past

Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-04-02 Thread Giovanni
I upgraded from django 1.6 to 1.7b1 and now it seems like as soon as I want to do anything that interacts with mysql, I keep getting this error: NotImplementedError: subclasses of BaseDatabaseWrapper may require a schema_editor() method In Python I can import mysql.connector just fine. I've rei

Pluggable crowdfunding django apps

2014-04-02 Thread Raymond Besiga
Hello community, Been browsing Github and the web for Django-based crowdfunding apps that I can build on top of. So far, I have come across CrowdTilt and Catarse but both are Ruby/Rails projects. The only Django app I found was Zipfelchappe but it heavily uses FeinCMS which I am not an avid use

Re: Random auth_permission + content_type errors during test runs

2014-04-02 Thread Russell Keith-Magee
On Wed, Apr 2, 2014 at 1:23 PM, Greg Taylor wrote: > I've got a project running Django 1.4, Postgres 3, Python 2.7. Our tests > get about halfway through, then we get a sudden flood of errors showing > that the django_content_type table may be empty: > > >

Re: How do I register to get access to the IRC Channel?

2014-04-02 Thread Aaron C. de Bruyn
Take a look at this: http://www.wikihow.com/Register-a-User-Name-on-Freenode If you still get stuck, let us know. -A On Wed, Apr 2, 2014 at 1:43 PM, John Draper wrote: > I go to Adium --> File --> irc.freenode.net > see screenshot > > I put in my nickname, hostname, and password. > > I get t

django-dbgettext and python 3

2014-04-02 Thread Andreas Kuhne
Hi all, I am in the process of rewriting our e-commerce site. In doing so we also thought that we should upgrade all of our packages to the latest versions (django 1.6, python 3 and so on). I have been doing alot of troubleshooting just getting our site to work and trying to use all of the functio

How do I register to get access to the IRC Channel?

2014-04-02 Thread John Draper
I go to Adium --> File --> irc.freenode.net see screenshot I put in my nickname, hostname, and password. I get this See 2nd screenshot... So what do I do next?I tried double clicking the item, and it just goes back to the first screenshot you see. I tried Option-click, Control-cli

custom sql in model save.

2014-04-02 Thread ashwoods
I need to override the SQL insert statement for one model, but would like to ensure everything that save() does is conserved (signals, etc..) where would the best place be? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: ORM Question

2014-04-02 Thread Bill Freeman
My point was that annotate might work after the other problems were fixed. Have you re-tested since? If your annotate still doesn't work then perhaps someone with more annotate experience than I will comment. On Wed, Apr 2, 2014 at 12:04 PM, Justin Holmes wrote: > No no, the annotate doesn't w

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Liam J Thompson
Hi Alex You might try that command, it's quick through the shell. I suppose there are many ways to do forms, but I've populated my modelforms through an __init__ to make sure its loaded fresh for every form requested, not just on the loading of the server. So object versus class if that makes

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Alessandro Caruso
Hi Liam, No I didn't try, but when the form is loaded empty (to create a new record) I can see the Multiple Select List widget with all the users (order by username) and I can even save one or more of them as viewers of the asset. Do you think I should try it anyway? I mean should I expect some

Re: ORM Question

2014-04-02 Thread Justin Holmes
No no, the annotate doesn't work - that's the whole reason for my question. See, the annotate doesn't associate instances with the annotated attribute, it associated results. (BTW, good looking out - I have once again fixed the SO question :-)) On Wed, Apr 2, 2014 at 10:17 AM, Bill Freeman wro

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Liam Thompson
Hi Alex Your code is way more advanced that my skill level. Was wondering if you had tried to run that query viewers = ModelMultipleChoiceField(queryset = User.objects.all().order_by( 'username')) from the shell ? Liam On Wednesday, 2 April 2014 15:12:42 UTC+2, Alessandro Caruso wrote: > >

Re: ORM Question

2014-04-02 Thread Bill Freeman
1. You now have a foreign key to Herd, but you don't have a model by that name. It's called LlamaHerd. 2. I was misinterpreting what you wanted (couldn't get past the lack of a relationship while reading0. Once the relationship is fixed, your original annotate might work. On Tue, Apr 1, 2014

Different ManyToManyFields to the User Table cause problem when editing form

2014-04-02 Thread Alessandro Caruso
Hi all, I have a (strange) problem. When trying to edit the VideoconferenceForm (see code later) Django returns an error "Cannot resolve keyword 'videoconference' into field. Choices are:… " It happens only when running the code on Apache (on Django dev server it works without problems, I can't

Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Alessandro Caruso
Hi all. the code: models.py https://gist.github.com/karuso/9766764 views.py (edit function) https://gist.github.com/karuso/9766806 the problem: When editing a Videoconference record through the VideoconferenceForm, Django returns an error: "Cannot resolve keyword 'videoconference' into field.

Re: CSS not rendering correctly

2014-04-02 Thread Warren Jacobus
this is the line I put in my settings.py file STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),) On Wednesday, 2 April 2014 13:50:41 UTC+2, Shai Efrati wrote: > > It seems to me that your app doesn't knwo where to pull the CSS from. > Can you post your directories structure and your base.html

Re: CSS not rendering correctly

2014-04-02 Thread Warren Jacobus
here is my directory structure: /Users/warren/sites/env/flight_manager/project/flight_manager (flight_manager)warren@bash:$ ls db.sqlite3 db_stuff.txt flightBooking flight_manager manage.py static templates here is what is in flight_manger and flightBooking flight_manager: __init__.py

Re: CSS not rendering correctly

2014-04-02 Thread Warren Jacobus
here is my directory structure: /Users/warren/sites/env/flight_manager/project/flight_manager (flight_manager)warren@bash:$ ls db.sqlite3 db_stuff.txt flightBooking flight_manager manage.py static templates here is what is in flight_manger and flightBooking flight_manager: __init__.py

Random auth_permission + content_type errors during test runs

2014-04-02 Thread Greg Taylor
I've got a project running Django 1.4, Postgres 3, Python 2.7. Our tests get about halfway through, then we get a sudden flood of errors showing that the django_content_type table may be empty: ..

Tastypie with Django and MongoDB. How to query subdocuments

2014-04-02 Thread Juan M. Mendez
Hello, I made this question with more details on stackoverflow: https://stackoverflow.com/questions/22792828/best-subdocument-structure-to-query-django-tastypie-with-mongodb-backend It could be summarized on this: I want to create an structure with Django and Tastypie that allows to have doc

Re: CSS not rendering correctly

2014-04-02 Thread Daniele Procida
On Wed, Apr 2, 2014, Warren Jacobus wrote: >I'm having some trouble with my css in my django app. See pic for how >things get rendered. Restart your server, in case you introduced some key files after you last started it, or run collectstatic

Re: CSS not rendering correctly

2014-04-02 Thread Shai Efrati
It seems to me that your app doesn't knwo where to pull the CSS from. Can you post your directories structure and your base.html? Shai. On Wed, Apr 2, 2014 at 2:45 PM, Warren Jacobus wrote: > Hi, > > I'm having some trouble with my css in my django app. See pic for how > things get rendered.

Re: Django python checkbox

2014-04-02 Thread Choro H
Thank you very much! This was helpful 2014年4月2日水曜日 11時41分11秒 UTC+9 Camilo Torres: > > Lets suppose you need the user to select which files to download: > --choro_checkbox.html > > > > Choro's quertion about checkboxes > > > Select files to download > > {% csrf_token %} > > File A valu

Re: Django python checkbox

2014-04-02 Thread Choro H
2014年4月2日水曜日 18時53分53秒 UTC+9 Choro H: > > > Thank you very much. > For example, i want to export only checked of a lot of information, > solike the following image: > > > > 2014年4

Re: Django python checkbox

2014-04-02 Thread Choro H
2014年4月2日水曜日 10時21分56秒 UTC+9 Choro H: > > Sorry you all, > > so,i want to export csv from database that is only when checked > > > 2014年4月1日火曜日 13時22分31秒 UTC+9 Choro H: >> >> Th

Re: Django python checkbox

2014-04-02 Thread Choro H
Thank you very much. For example, i want to export only checked of a lot of information, solike the following image: 2014年4月2日水曜日 11時22分55秒 UTC+9 somecallitblues: > > There are a few ways in which you can do this. One of them is to add some > javascript to your code that will listen to oncli