Re: Django site as SOAP endpoint

2021-01-31 Thread Xavier Ordoquy
Hi Fenrir, You may give Spyne (http://spyne.io/) a try. It is a RPC framework that can handle SOAP requests and has a Django integration. Spyne has a couple of drawbacks - IMHO it tries to do too any things and may be somewhat complex - but it does the job. Hopes this will help, Xavier O. Le

Re: Django rest framework Version

2018-01-08 Thread Xavier Ordoquy
Hi, Out of curiosity, is there anything wrong with the latest version ? Regards, Xavier. > Le 9 janv. 2018 à 04:59, Rakhee Menon a écrit : > > Hey!!! > Please can anyone tell whats the stable version of django rest framework to > be used for production. > Thanks in

Re: Django REST framework nested query.

2017-11-06 Thread Xavier Ordoquy
Hi, You are looking for nested serializers. Documentation explains how to deal with them at: http://www.django-rest-framework.org/api-guide/relations/#nested-relationships Regards, Xavier, Linovia. > Le 7 nov.

Re: Updating data via admin not visible on restful api without admin specified in url until restart server

2017-09-26 Thread Xavier Ordoquy
Hi, You likely have an issue with scope in your code. Something similar to https://stackoverflow.com/questions/15395521/django-form-field-will-not-update-without-server-reset-instantiating-a-clas

Re: how to write APIview to access a specific item by using APIViews only

2017-09-06 Thread Xavier Ordoquy
> Le 6 sept. 2017 à 10:00, Melvyn Sopacua a écrit : > > One of the core design issues with DRF is that everything > is based around a queryset. Even if the set is just one item. This sounds like an easy troll. A lot of code from DRF is based around queryset because DRF

Re: Django rest framework cannot deal with multple objects in model viewset

2017-04-20 Thread Xavier Ordoquy
; But I am getting an error: > > TypeError at /api/blog/pages/ > > 'ListSerializer' object is not callable > What am I missing here? it’s serializer_class, not serializer_instance. You can’t instantiate the serializer there. In order to deal with multiples items, you better over

Re: Flattening model relationships (in APIs)

2017-02-27 Thread Xavier Ordoquy
Quick question. How will you handle the fields updates ? Like, what if you get an city_name="Bombay" and city_code="DEL" ? If you can set them as read-only, then using the source argument is the way to go. Alternatively, you can define a non model serializer and flatten the data before hand.

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Xavier Ordoquy
Hi, Le mercredi 8 juin 2016 10:13:46 UTC+2, luisza14 a écrit : > > I am using supervisor and gunicorn for production run as fondomutual user. > > $ env | grep LANG > LANG=es_CR.UTF-8 > LANGUAGE=es_CR:es > Supervisor doesn't propagate the locales to its supervised processes. You need to set them

Re: Right place to decrypt/decode data from DB before passing it to UI without affect data in DB itself.

2016-02-08 Thread Xavier Ordoquy
Hi, > Le 8 févr. 2016 à 19:00, learn django > a écrit : > > Hi, > > I store some data like email text, headers and from email address in encoded > format in the database. > I want to have a page where I can display all this

Re: Best approach to write unit tests involving rest apis.

2015-12-03 Thread Xavier Ordoquy
> Le 3 déc. 2015 à 08:08, learn django <siddhesh.dive...@gmail.com > <mailto:siddhesh.dive...@gmail.com>> a écrit : > > On Wednesday, December 2, 2015 at 10:48:52 PM UTC-8, Xavier Ordoquy wrote: > Hi, > > > Le 3 déc. 2015 à 00:12, learn django &

Re: Best approach to write unit tests involving rest apis.

2015-12-02 Thread Xavier Ordoquy
Hi, > Le 3 déc. 2015 à 00:12, learn django a écrit : > > My app uses rest framework. > I am writing test cases which involve standard requests like > GET/POST/DELETE/PUT. > What is the best approach to write the test cases ? Django REST framework comes with a test

Re: Django-Restframework adding and accessing a user to a model / adding an owner?

2015-11-07 Thread Xavier Ordoquy
Hi > Le 7 nov. 2015 à 22:00, lnzy3...@gmx.de a écrit : > > > It runs into an error. To me it seems like I cannot combine two models. My > goal is to access all the tasks attached to that user, or to add a task to > the user accessing the API at the moment > So it would be very helpful, when

Re: How to develop a frontend web app for using REST services

2015-10-19 Thread Xavier Ordoquy
appy hacking. > Krishnakant. > > > On Friday 16 October 2015 03:39 PM, Xavier Ordoquy wrote: > > Hi, > > I wrote a short blog post about getting most of Django REST framework > without using Django models. > > https://medium.com/@linovia/django-rest-framework-viewset

Re: How to develop a frontend web app for using REST services

2015-10-16 Thread Xavier Ordoquy
Hi, I wrote a short blog post about getting most of Django REST framework without using Django models. https://medium.com/@linovia/django-rest-framework-viewset-when-you-don-t-have-a-model-335a0490ba6f You will loose the integration with the Django Models and will need to do a few things by

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Xavier Ordoquy
Hi Vasiliy, > Le 12 oct. 2015 à 14:53, Vasiliy Korol a écrit : > > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order to ease the future transition to the next Django > LTS release. > After migrating to Django 1.8.5,

Re: DRF without login

2015-08-13 Thread Xavier Ordoquy
> Le 13 août 2015 à 23:06, Prabath Peiris a écrit : > > Hi Hi > I am trying to implement a DRF in existing django project. I installed the > drf and set up APiView (class based) and add the get() to the class. When I > call this get method I get an error as

Re: segmentation fault

2015-01-13 Thread Xavier Ordoquy
13 23:46:12 2015] [notice] child pid 11979 exit signal Segmentation > fault (11) > [Tue Jan 13 23:46:12 2015] [notice] child pid 11993 exit signal Segmentation > fault (11) > > how do i go about resolving this? You need to ensure that your Python/C libraries are up to date with

Re: Error: No module named polls

2015-01-05 Thread Xavier Ordoquy
py", line 37, in import_module > __import__(name) > ImportError: No module named polls > > i don't know what to do can anyone help, please!!! > > sorry for my bad english… It looks like Python couldn’t find the « polls » directory. Maybe you didn’t create it or it i

Re: Version number comparison and beta

2014-05-01 Thread Xavier Ordoquy
can't remember where I saw this but this worked well for me. Regards, Xavier Ordoquy, Linovia. -- 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

Re: Middleware being called twice for every request, help?

2014-03-19 Thread Xavier Ordoquy
Hi, Just remove the Django debug toolbar. It will call your middlewares to display the result. Regards, Xavier, Linovia. Le 19 mars 2014 à 18:00, Tyler Bettilyon a écrit : > Hello! > > I recently switched my Django environment from using Apache to Gunicorn. > After this

Re: Dynamic database routing in Django

2014-03-13 Thread Xavier Ordoquy
Hi Philip, I'm not sure your sharding will be possible in the way you describe it. There will be cases for which selecting the database will not be possible. For example, Customer.objects.get(name=) won't be able which DB you'll need to hit to get the result. Same goes for a new Customer.

Re: when I pip-installed django-debug-toolbar, the latest version of Django was installed automatically.

2014-02-18 Thread Xavier Ordoquy
stall, it'll take the one on the /tmp and will not remove it by itself. The correct workaround is to clean /tmp and try a new installation. Regards, Xavier Ordoquy, Linovia -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django Install Error: " SyntaxError: future feature unicode_literals is not defined "

2014-01-09 Thread Xavier Ordoquy
Hi, Given the error it looks like you weren’t using python 3.3 For the record, I’m running on osx (10.9), using python 3.3.3 I had no issue with this import. Regards, Xavier Ordoquy. Le 9 janv. 2014 à 19:04, Byron Price <byron.h.pr...@gmail.com> a écrit : > I have Python 3.3.

Re: django tests

2013-11-22 Thread Xavier Ordoquy
are testing since they seem to be mandatory. Regards, Xavier Ordoquy, Linovia. Le 22 nov. 2013 à 09:26, Harjot Mann <harjotmann1...@gmail.com> a écrit : > On Fri, Nov 22, 2013 at 1:47 PM, Xavier Ordoquy <xordo...@linovia.com> wrote: >> I feel like you are trying to get too fast int

Re: django tests

2013-11-22 Thread Xavier Ordoquy
it and understand what didn’t go well so that we could improve the documentation. Regards, Xavier Ordoquy, Linovia. > Not optional means that are not validated. If yes why? > I mean these are the compulsory fields, so why we should not give it. > I used all the compulsory fields but still I a

Re: django tests

2013-11-21 Thread Xavier Ordoquy
Hi, I doubt the error is the same although it might look similar. Please note that TestCase use setUp instead of setup. Regards, Xavier Ordoquy, Linovia. Le 22 nov. 2013 à 07:17, Harjot Mann <harjotmann1...@gmail.com> a écrit : > On Fri, Nov 22, 2013 at 11:17 AM, Charly Román

Re: RestFul with Class Based Views best practice

2013-10-29 Thread Xavier Ordoquy
Hi, You probably want to have a look at django rest framework. You use can will be easy with it, in particular if you use http://django-rest-framework.org/api-guide/viewsets.html#modelviewset Regards, Xavier. Le 29 oct. 2013 à 20:45, pywebdesign a écrit : > Hi, > > I

Re: Python 3

2013-10-23 Thread Xavier Ordoquy
Hi Andréas, The thing with python3 is it dropped implicit conversion between binary and "textual" strings. That means that: - you now need to explicitly encode or decode if you need to switch the type of string you're using - any conversion issue will be risen even if you're just using plain

Re: Japanese named File - FileUpload django admin throws error

2013-10-21 Thread Xavier Ordoquy
Hi, I've run into similar issues while saving files with non ascii file names. In my case, it turns out that supervisor was removing the environment variables leave Django left with a C locale (ie, ascii only filenames). It worked once I added - for example - LANG="en_US.UTF-8",

Re: PostgreSQL OperationalError

2013-10-18 Thread Xavier Ordoquy
imes doesn't. > > > 2013/10/18 Xavier Ordoquy <xordo...@linovia.com> > Hello, > > Your DATABASES settings aren't correct. > fe_sendauth is about Postgresql complaining the login/password didn't match. > > Regards, > Xavier, > Linovia. > > Le 18 oct.

Re: PostgreSQL OperationalError

2013-10-18 Thread Xavier Ordoquy
Hello, Your DATABASES settings aren't correct. fe_sendauth is about Postgresql complaining the login/password didn't match. Regards, Xavier, Linovia. Le 18 oct. 2013 à 10:28, Muhammed TÜFEKYAPAN a écrit : > Hello, > > > I just start to publish my app on web.

Re: Official Django tutorial 3: Reverse for 'detail' with arguments '('',)' and keyword arguments '{}' not found.

2013-10-12 Thread Xavier Ordoquy
Hi, It looks like you are missing the poll in your context. {% url 'detail' poll.id %} will try to match an url named detail with the argument poll.id However Django says it can't find a reverse for 'detail' with arguments ('',) which means that you don't have a poll in your context (or the

Re: ALLOWED_HOSTS and dynamic dyn site

2013-10-10 Thread Xavier Ordoquy
Hi michael, I've also noticed a couple of issues with it. Thanks to raven and sentry I noticed those requests were missing the hostname in their headers and decided I didn't care more. You might want to use them and see if it's the same for you. Best regards, Xavier, Linovia. Le 10 oct. 2013

Re: [Newbie] Self referencing models

2013-09-12 Thread Xavier Ordoquy
Hello Zoubeida, models.ForeignKey(self) works (see https://docs.djangoproject.com/en/1.5/ref/models/fields/#foreignkey about it). What sort of error did you get when trying it ? Regards, Xavier Ordoquy. Le 12 sept. 2013 à 09:44, Zoubeida <zzarko...@gmail.com> a écrit : > Any help

Re: New field in django

2013-09-08 Thread Xavier Ordoquy
Hi, The message is: "Table 'tcc_report' already exists" This means that you already created the tables with syncdb which bypassed south and you're trying to created them again with south. You'll be able to recover from this by: - ensuring your models are in line with your current DB schema -

Re: Can't decode french characters after switching to PostgrSQL from MySQL

2013-08-22 Thread Xavier Ordoquy
I'm using full utf8. Whenever I need to import data, I make sure they are utf8 encoded. an extract from a database dump: SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET

Re: Can't decode french characters after switching to PostgrSQL from MySQL

2013-08-22 Thread Xavier Ordoquy
Hi Le 22 août 2013 à 09:52, Radomir Wojcik a écrit : > Are french characters UTF-8 Compliant? As I said, yes. Been using Django + Postgres with french texts and faced no issue so far. You also have a decent Django french user base which would have noticed that sort of

Re: Can't decode french characters after switching to PostgrSQL from MySQL

2013-08-22 Thread Xavier Ordoquy
Hi, Le 22 août 2013 à 08:25, Radomir Wojcik a écrit : > Adding the unicode u to the 'string' as such u'string' fixes the issue but > now I have to add this u to every string that will potentially have a > character with a french accent in it? How come MySQL didn't need

Re: 'FormSet' object has no attribute 'save'

2013-06-23 Thread Xavier Ordoquy
Hi, Looks like you've missed something in your code. Unfortunately without the formset creation / instance creation code, there isn't much we can do. Regards, Xavier. Le 23 juin 2013 à 17:05, Mário Idival a écrit : > Hi guys, > > I need of little help with formsets. I

Re: South not picking up changes to model, app crashes

2013-05-17 Thread Xavier Ordoquy
d here: http://south.readthedocs.org/en/0.7.6/tutorial/part1.html#changing-the-model Best regards, Xavier Ordoquy. -- 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

Re: Django 1.5.1 and formsets with more than 1000 initials

2013-04-24 Thread Xavier Ordoquy
1000. You probably could open a ticket about that. Please note that a more flexible workaround would be: > >>> ArticleFormSet = formset_factory(ArticleForm, max_num=len(MyInitials), > >>> extra=0) Regards, Xavier Ordoquy, Linovia. Le 24 avr. 2013 à 21:42, Carsten Fuch

Re: Re-usable app for REST API creation with Python 3 support?

2013-04-22 Thread Xavier Ordoquy
Hi Thomas, You should give a go to Django Rest Framework (http://django-rest-framework.org/) as it has been ported to Python3. Regards, Xavier Ordoquy, Linovia. Le 22 avr. 2013 à 12:08, Thomas Weholt <thomas.weh...@gmail.com> a écrit : > I'm looking for a re-usable app for django

Re: django 1.4.3 to 1.4.4 upgrade fails - Bad magic number Import Error

2013-02-21 Thread Xavier Ordoquy
Hi, You should consider upgrading to 1.4.5 which fixes that issue. Best regards, Xavier Le 21 févr. 2013 à 09:00, Frank Bieniek a écrit : > Hi, > we are using jenkins to build our django stack, > we changed the django version from 1.4.3 to 1.4.4. > this

Re: Layered Dropdown List

2012-12-24 Thread Xavier Ordoquy
ld like to get. > The user or admin can select only the states. > > I would appreciate any input I can get. > Thank you for reading my question and I hope to hear from you. > > Regards > You'll find how to do this with the MEDIA_CHOICES example here: https://docs.djang

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Le 15 déc. 2012 à 16:37, Phil Brant <phil...@gmail.com> a écrit : > Running that in python interpreter just throws an error "Invalid Syntax" Without stacktrace, there isn't much we can do. There might be something wrong in your settings file. Regards, Xavier Ordoquy, Linovia

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Sorry I should have been more explicit. You need to call the manage.py through the python interpreter: "python manage.py runserver" because your local directory isn't in your paths. Regards, Xavier Ordoquy, Linovia. Le 15 déc. 2012 à 16:14, Phil Brant <phil...@gmail.com> a éc

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Have you tried to start them with the manage.py runserver instead of django-admin ? Regards, Xavier Ordoquy, Linovia. Le 15 déc. 2012 à 15:38, Phil <phil...@gmail.com> a écrit : > Hi Xavier, I tried a project called "boom" too and same message, plus my > other 3 django

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Hi Phil, test is a python module. Your project name conflicts with it. You should use another name for your project. Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Tutorial Part 3: loading index.html in browser

2012-11-24 Thread Xavier Ordoquy
o into the index.html file that I created? You are probably looking at the file itself instead of the page rendered by the server. Is that the result you had while looking at http://localhost:8000/polls/ ? Regards, Xavier Ordoquy. > Thanks! > > {% if latest_poll_list %} > >

Re: Location of non-app-specific static files?

2012-11-04 Thread Xavier Ordoquy
ic > ├── static > ├── templates > ├── urls.py > └── wsgi.py Then you add the application in your INSTALLED_APPS and you're done. Regards, Xavier Ordoquy, Linovia. Le 4 nov. 2012 à 00:23, Ryan <ryan.osborn...@gmail.com> a écrit : > Hi, > > I have been w

Re: My page cound not load image, help!

2012-10-22 Thread Xavier Ordoquy
w) in a model takes a few steps:" Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to

Re: Struggling with static files

2012-10-22 Thread Xavier Ordoquy
for production using the collectstatic command. This is not for development and this is not where you should store your project's static files. Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Struggling with static files

2012-10-22 Thread Xavier Ordoquy
Hi, Your static folder should be declared in STATICFILES_DIRS if you want him to be served (see https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage about that). Please take care to give another name to STATIC_ROOT for production settings. Regards, Xavier Ordoquy, Linovia

Re: Postgresql Index & expensive queries [n00bie alert]

2012-10-20 Thread Xavier Ordoquy
Hi, As Samuel said, the first step is to install Django Debug Toolbar to see what's going on with your queries. Then you'll probably be interested in https://docs.djangoproject.com/en/1.4/ref/models/querysets/#prefetch-related Regards, Xavier Ordoquy, Linovia. Le 20 oct. 2012 à 05:16, Barry

Re: ./manage.py collectstatic does not collect my folder

2012-10-07 Thread Xavier Ordoquy
The order in which the applications are declared is important. If I'm not mistaken, the files in STATICFILES_DIRS will override the application's static directories. Regards, Xavier Ordoquy, Linovia. Le 7 oct. 2012 à 06:52, easypie <program...@gmail.com> a écrit : > I have my project

Re: following tutorial / ran into problem....?

2012-10-05 Thread Xavier Ordoquy
Hi, class Poll(models.Model): # ... def __unicode__(self): return self.question class Choice(models.Model): # ... def __unicode__(self): return self.choice You probably have used self.question in the Choice class instead of self.choice Regards, Xavier Ordoquy

Re: Sporadic Currency formatting is not possible using the 'C' locale

2012-10-05 Thread Xavier Ordoquy
Hi brian, If you are using mod_wsgi with apache or nginx, reloading or restarting your servers may help. Regards, Xavier Ordoquy, Linovia. Le 5 oct. 2012 à 21:03, Brian <bri...@potensiacorp.com> a écrit : > I get this error sporadically. If I refresh the screen 3 or 4 times

Re: How to create a formset that contains forms with a dropdown? (Crucial)

2012-08-16 Thread Xavier Ordoquy
ng/dynamic-form-generation/ Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: How to create a formset that contains forms with a dropdown? (Crucial)

2012-08-16 Thread Xavier Ordoquy
-formsets Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@google

Re: Share models between django apps

2012-08-06 Thread Xavier Ordoquy
the application > common settings on my second application does not encounter > models defined in "common". > I've tried changing the order of configuration INSTALLED_APPS > But it still fails. > > Thanks for the help Do you have a common directory or common.py in the app

Re: Testing against a multi-db app with un-managed models [django 1.2.3]

2012-07-26 Thread Xavier Ordoquy
correctly I've faced some issues while overriding the test runner, but I can't remember them. I don't have much informations as I'm on vacation. If you poke me by the end of next week I will give you more informations. Good luck, Xavier Ordoquy, Linovia. -- You received this message because you

Re: 'str' object has no attribute 'resolve'

2012-06-19 Thread Xavier Ordoquy
Hi, If you just return the original urls.py, there's no way we can know what you did and this will prevents us from helping you. As mentioned by Babatunde, you should give the traceback and the modified urls (use dpaste.com for that). Regards, Xavier Ordoquy, Linovia. Le 19 juin 2012 à 18:34

Re: 'str' object has no attribute 'resolve'

2012-06-19 Thread Xavier Ordoquy
Hi, 1) uncomment the two lines to enable admin as it is said: from django.contrib import admin admin.autodiscover() 2) use: url(r'^admin/', include(admin.site.urls)), Regards, Xavier Ordoquy, Linovia. Le 19 juin 2012 à 17:53, Sabbineni Navneet a écrit : > This is my url.py f

Re: Django Tutorial part 2... Admin Site won't work...

2012-06-17 Thread Xavier Ordoquy
Hi, The site entry is usually created when the syncdb is run. What Django version are you using ? If you're using the development version, please remove it and install a stable version. Regards, Xavier Ordoquy, Linovia. Le 16 juin 2012 à 23:16, Laurence MacNeill a écrit : > I'm going thro

Re: 'ascii' codec can't encode character u'\xe4'

2012-06-14 Thread Xavier Ordoquy
server (see apache setenv as mentioned in earlier post). Regards, Xavier Ordoquy, Linovia. Le 15 juin 2012 à 07:36, kenneth gonsalves a écrit : > On Thu, 2012-06-14 at 23:46 +0200, Hendrik Speidel wrote: >> as an alternative you can provide your own Storage implementation like >>

Re: Static files management

2012-05-22 Thread Xavier Ordoquy
Hi, If you follow what the doc says, there shouldn't be any issue (https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage) Regards, Xavier Ordoquy, Linovia. Le 22 mai 2012 à 15:31, Amr Abdel-wahab a écrit : > I need the exact steps to have this thing working right becaus

Re: ModelForms and CreateView Help

2012-05-22 Thread Xavier Ordoquy
Hi, get is a termination statement for querysets. please use filter instead. Regards, Xavier Ordoquy. Le 22 mai 2012 à 10:34, wchildsuk a écrit : > Hi, > > I'm trying to use generic class based views to edit a specific > queryset but I can't see to get my code working. I've defi

Re: UpdateView Creates a new object

2012-05-14 Thread Xavier Ordoquy
No problem. Redirecting after a POST is a good habit. This will avoid duplicated data if the user reloads the page because if you don't redirect, you'll get a second POST. Regards, Xavier Ordoquy, Linovia. Le 14 mai 2012 à 17:42, Michael Ackerman a écrit : > Thank you very much, that wor

Re: UpdateView Creates a new object

2012-05-13 Thread Xavier Ordoquy
) Regards, Xavier Ordoquy, Linovia. Le 13 mai 2012 à 21:19, Michael Ackerman a écrit : > Yes they are using the same template. > Its a very basic template: > {% extends "base.html" %} > {% block main %} > {% csrf_token %} > {{ form }} > > > {% endblock

Re: UpdateView Creates a new object

2012-05-13 Thread Xavier Ordoquy
Hi, What does you form html tag looks like ? Sounds like you're sending the updateview form to the createview. Regards, Xavier Ordoquy, Linovia. Le 13 mai 2012 à 11:59, Michael Ackerman a écrit : > My updateview seems to be creating another object instead of updating the > object. Th

Re: No Module Named Generic

2012-05-01 Thread Xavier Ordoquy
Hi, You should replace django.generic in the urlspatterns string with django.views.generic Regards, Xavier Ordoquy Linovia. Le 1 mai 2012 à 16:30, Gerald Klein a écrit : > Hi, I am having a problem, where as django doesn't find the generics module. > Here is my urls.py > > thank

Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Xavier Ordoquy
Hi, I've never faced such issue with Django on OSX. Do you use or import non pure python apps ? What python version do you use ? Stock osx one ? homebrew ? homemade ? Regards, Xavier. Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit : > I'll attach a screenshot. It works for some time,

Re: how to

2012-04-05 Thread Xavier Ordoquy
Hi, That's for CharFields :) IntergerFields in forms have max_value and min_value. Regards, Xavier, Linovia Le 5 avr. 2012 à 18:12, Hum a écrit : > does max_length work for IntegerFields? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: calculate default values for fields based on the content of other fields

2012-04-05 Thread Xavier Ordoquy
Hi, I'm not sure I clearly understood your issue. Do you want some choice fields to limit their choices according to another choice field value ? Regards, Xavier. Le 4 avr. 2012 à 15:09, Jaroslav Dobrek a écrit : > Hello, > > is there a way to calculate default values for certain fields

Re: Bug in BaseForm?

2012-03-28 Thread Xavier Ordoquy
Hi, Have you called is_valid() on the form before that ? Regards, Xavier Ordoquy, Linovia. Le 28 mars 2012 à 15:57, Marcin a écrit : > Consider the following stack trace (all relevant code is shown in the stack > trace): > > In

Re: Django application performance estimates?

2012-03-15 Thread Xavier Ordoquy
argue that once you hit performance issues - with a decent code base - you'll probably be making enough money to invest on a scalability issues. Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django application performance estimates?

2012-03-15 Thread Xavier Ordoquy
ith Python & Django. First part will most probably speak to non technicals. Regards, Xavier Ordoquy. Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Getting URL from within a template

2012-03-13 Thread Xavier Ordoquy
Le 13 mars 2012 à 18:40, Larry Martell a écrit : > On Tue, Mar 13, 2012 at 11:26 AM, Xavier Ordoquy <xordo...@linovia.com> wrote: >> Hi >> >> Le 13 mars 2012 à 18:11, larry.mart...@gmail.com a écrit : >> >>> From within a template can I

Re: Getting URL from within a template

2012-03-13 Thread Xavier Ordoquy
Hi Le 13 mars 2012 à 18:11, larry.mart...@gmail.com a écrit : > From within a template can I find out the URL that caused the template > to be invoked? You usually should have the request object in your template. See

Re: How-to for static files?

2011-11-21 Thread Xavier Ordoquy
Hi, > What follows are my current settings. In settings.py, I have: > > STATIC_URL = '/static/' > INSTALLED_APPS = ('django.contrib.staticfiles',) In order to get their static files served, apps need to be listed in the INSTALLED_APPS list. As you don't mention it, you probably need to add

Re: Serving up CSS files in development

2011-11-07 Thread Xavier Ordoquy
Hi, Where did you put your static files ? I noticed that your STATICFILES_DIRS is empty which means you don't have any static files on the project level. What the docs say about this: Your project will probably also have static assets that aren’t tied to a particular app. The STATICFILES_DIRS

Re: static files in django

2011-10-14 Thread Xavier Ordoquy
Hi, It looks like you don't have the static configured in your urls. Have a look here: https://docs.djangoproject.com/en/1.3/howto/static-files/#basic-usage Regards, Xavier. Le 14 oct. 2011 à 18:54, Pulkit Mehrotra a écrit : > hey i am having problem loading my static files in django 1.3 > >

Re: Second coming of Java?

2011-10-13 Thread Xavier Ordoquy
Le 13 oct. 2011 à 17:06, Maksymus007 a écrit : > > > On Thu, Oct 13, 2011 at 4:59 PM, Javier Guerra Giraldez > wrote: > On Thu, Oct 13, 2011 at 9:52 AM, Maksymus007 wrote: > > must works with some other solutions where choice of using SOAP over

Re: STATIC_ROOT confusion

2011-10-08 Thread Xavier Ordoquy
Le 8 oct. 2011 à 17:23, Markus Gattol a écrit : > Yeah, read that post and I disagree. Introducing yet another name on the > filesystem (theme) certainly isn't helping people (this thread and many > others show there's enough confusion already). It makes more sense to have a > 1:1 mapping

Re: Class Views Questions

2011-10-08 Thread Xavier Ordoquy
Le 8 oct. 2011 à 16:12, CrabbyPete a écrit : > I am fooling around with django generic class views, and I was > wondering if its possible to actually build class views per item for > example I have the following class view. > > > class TeamView( View, TemplateResponseMixin ): >

Re: STATIC_ROOT confusion

2011-10-08 Thread Xavier Ordoquy
Le 8 oct. 2011 à 15:27, Markus Gattol a écrit : > Here's what I think is semantically good distinction: > > PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) (that's the dir > containing your settings.py, that dir is usually one dir below your > virtualenv, I simply name it "pr".

Re: STATIC_ROOT confusion

2011-10-07 Thread Xavier Ordoquy
HI, You don't need STATIC_ROOT while using your dev server. If you have a look https://docs.djangoproject.com/en/1.3/howto/static-files/#basic-usage it isn't even mentionned in the basic usage section. Regards, Xavier. Le 8 oct. 2011 à 04:13, Roy Smith a écrit : > I'm mystified why django

Re: Easy question (I hope)

2011-10-07 Thread Xavier Ordoquy
Hi, Create a models directory and have an __init__.py file within. Put the models you want to import in that file and you are good to go. Regards, Xavier. Le 7 oct. 2011 à 16:39, bcrem a écrit : > Howdy, > > I come from a C/C++ background, getting into some django/python now. > I'm used to a

Re: django 1.3 upgrade problem

2011-10-02 Thread Xavier Ordoquy
Hi, I'm a bit curious about the ModPythonRequest object which makes me think you are using mod_python. If this is the case, you should note that its support is deprecated: Support for mod_python has been deprecated, and will be removed in Django 1.5. If you are configuring a new deployment,

Re: can't get STATICFILES to work (Django dev version)

2011-09-26 Thread Xavier Ordoquy
d this does collect >> all >> static files. Unfortunately, running the server still does not serve >> my >> css files. >> >> I have spent too many cycles on this issue now. I will go back to my >> workaround of just placing css in

Re: DB: working with databases

2011-09-25 Thread Xavier Ordoquy
Le 26 sept. 2011 à 01:48, Russell Keith-Magee a écrit : > On Mon, Sep 26, 2011 at 12:13 AM, Xavier Ordoquy <xordo...@linovia.com> wrote: >> Hi, >> Database will be better designed if you let django orm create them first and >> you add your tuning after. >> How

Re: can't get STATICFILES to work (Django dev version)

2011-09-25 Thread Xavier Ordoquy
Hi, > I have read and followed the docs on static files. > django.contrib.staticfiles is in INSTALLED_APPS > (by default), and I have set STATICFILES_DIRS to where my static files > are (/home/nara/media). (I have > tried with and without a slash at the end of this absolute file path). Static

Re: DB: working with databases

2011-09-25 Thread Xavier Ordoquy
Hi, Database will be better designed if you let django orm create them first and you add your tuning after. However, you can still work with non Django generated database. django-extensions application even provides an inspectdb that will guess most of your models from the database schema.

Re: Accessing attributes on ManyToManyField table

2011-09-25 Thread Xavier Ordoquy
Hi, You'll need to acces it through the membership_set: person_instance.membership_set.date_joined Regards, Xavier, Linovia. Le 25 sept. 2011 à 17:22, mcjffld a écrit : > > In the documentation (which really is great) there is this example > > class Membership(models.Model): >person =

Re: Programming logic in Classed Based FormView or in the Form Itself?

2011-09-22 Thread Xavier Ordoquy
Hi, Nothing prevents you to put your tests in the form_valid and render the same page with your errors. Regards, Xavier, Linovia. Le 22 sept. 2011 à 17:14, Kurtis a écrit : > Hey, > > I'm trying to figure out the best way to do this. I have a FormView > and an associated Form. In my Form, I

Re: Using success_url with reverse() in class-based generic view

2011-09-21 Thread Xavier Ordoquy
Hi, You can also use get_success_url for that: class ContactView(generic.FormView): form_class = ContactForm def get_success_url(self): return reverse('contact-sent') Regards, Xavier Linovia. Le 21 sept. 2011 à 00:08, Daniel P a écrit : > Same problem. You'r not alone! > >

Re: Django admin - utf8 filename

2011-07-19 Thread Xavier Ordoquy
Le 19 juil. 2011 à 16:32, galgal a écrit : > How can I get rid of error when uploading files with utf8 name? > I can't find any solution:/ Hi, There's nothing to do except make sure your LANG is set to something such as en_US.UTF-8. If you are using apache, check you /etc/apache2/envvars

Re: Serving static files weirdness

2011-07-08 Thread Xavier Ordoquy
Hi, If you want help, you'll need to provide more information. What django version, what env (wsgi, devserver), what's your admin media and so on. Regards, Xavier. Le 8 juil. 2011 à 04:40, neridaj a écrit : > I had my static files being served form media i.e., the tree looked > like this: >

Re: django/python performance vs play/java

2011-07-05 Thread Xavier Ordoquy
Hi, Is there anyway you can upload the project to bitbucket or github ? Regards, Xavier. Le 6 juil. 2011 à 01:31, drakkan a écrit : > Hi, > > thanks for your comments, I installed django-debug toolbar and I can > confirm I'm doing similar queries from both django and play. The query > I do

Re: django/python performance vs play/java

2011-07-05 Thread Xavier Ordoquy
Hi, Install Django debug toolbar and have a look at what's wrong with your application. My numbers are very different from yours. I just ran some tests and I am around 350 req/s with 4 sql queries. I'm a on dual core (4 virtual cores), using gunicorn/mysql with debug turned off, 4 workers

  1   2   3   >