Re: How to get a web development job (i.e. Django/Python) if someone is an amateur programmer?

2010-12-17 Thread Carlos Daniel Ruvalcaba Valenzuela
personally have received Jobs and offers just because I'm a django/python developer and listed in a few sites (such as djangopeople). Regards, Carlos Daniel Ruvalcaba Valenzuela Blackchair Software http://www.blackchairsoft.com/ On Fri, Dec 17, 2010 at 10:03 AM, Dopster <ken.kyhu...@gmail.com>

models don't show in tamplate

2010-12-03 Thread Carlos Aboim
Hi guys, Is there a reason for my models don't show up in my template? my urls on app folder: http://dpaste.com/hold/282583/ my template: http://dpaste.com/hold/282586/ I can access through shell to models instaces, Any help whould be apreciated thank you Aboim -- You received this message

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
/ template http://dpaste.com/hold/282242/ Full traceback http://dpaste.com/hold/282244/ and that's the code, Hope I have not forgotten anything I you could help me thank you Aboim On Dec 2, 2:50 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Dec 2, 2010 at 2:42 PM, Carlos A

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
get it, can you help me? thanks Aboim On Dec 2, 2:23 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Dec 2, 2010 at 2:18 PM, Carlos Aboim <abo...@gmail.com> wrote: > > Hi guys (and gals), > > Why I am getting this error? > > > Caught TypeError while re

dict objects are unhashable

2010-12-02 Thread Carlos Aboim
Hi guys (and gals), Why I am getting this error? Caught TypeError while rendering: dict objects are unhashable I am using a generic view (object_list) to render my template. But I guess I am not passing all the data correctly. Could you show me the correct direction? my urls: info_dict = {

missing object in object_list generic view

2010-11-30 Thread Carlos Aboim
It's very strange, got this: urls info_dict = { 'Queryset': Obra.objects.all (), } (r'index / $ ',' django.views.generic.list_detail.object_list ', info_dict, dict (name = "obras_index", template_object_name = 'obras', paginate_by = 5)), template [...] {% For book in the works%}

generic views template problem

2010-11-29 Thread Carlos Aboim
Guys, Someone can tell me what is happening with my generic views? I have the templates in my application folder 'templates' in the root my project. This folder is referenced in settings such as: TEMPLATE_DIRS = ( os.path.join (PROJECT_ROOT_PATH, 'templates') ) and I am calling a generic

Re: User additional profile

2010-11-23 Thread Carlos Daniel Ruvalcaba Valenzuela
What you want is to add more field to the User model, the common way to do this is to create an UserProfile model which will be linked to a given user, check the documentation on the django book on this: http://www.djangobook.com/en/1.0/chapter12/#cn222 Regards, Carlos Ruvalcaba On Mon, Nov 22

Re: database relationships, many to one

2010-11-21 Thread Carlos Daniel Ruvalcaba Valenzuela
here is throwing you the error, but with the above change should do the trick, just don't forget to remove your ManyToMany departments definition on University model, that would make the name university.department clash. Regards, Carlos Ruvalcaba On Sun, Nov 21, 2010 at 7:10 AM, Bruno Amaral <m..

Re: database relationships, many to one

2010-11-20 Thread Carlos Daniel Ruvalcaba Valenzuela
arField(max_length=2, choices=GENDER) Regards, Carlos Ruvalcaba On Sat, Nov 20, 2010 at 6:19 PM, Bruno Amaral <m...@brunoamaral.eu> wrote: > I have been trying to create a database for Universities, Departments > and Courses. > > The idea is that a University has many departm

Re: ReportLab and Django - templates? ; FK object has no attribute split

2010-11-19 Thread Carlos Daniel Ruvalcaba Valenzuela
There is also template2pdf which is basically and RML subset interpreter, you write your RML from a django template and pass it to a function from template2pdf which will generate a PDF from it. http://code.google.com/p/template2pdf/ That is what we are using, I have even contributed a few

Re: admin usage

2010-11-02 Thread Carlos Daniel Ruvalcaba Valenzuela
for routing or pinpointing locations. What kind of applications/situations do you find more suited for reusing the admin module? Regards, Carlos Ruvalcaba On Tue, Nov 2, 2010 at 12:12 PM, derek <gamesb...@gmail.com> wrote: > I always had the opposite impression. The Admin can be modif

Re: admin usage

2010-10-29 Thread Carlos Daniel Ruvalcaba Valenzuela
for certain tasks (such as adding data like inventory part numbers) that are not your daily use case o central functionality. Regards, Carlos Daniel Ruvalcaba On Fri, Oct 29, 2010 at 1:55 PM, Frank Wiles <fr...@wiles.org> wrote: > On Fri, Oct 29, 2010 at 3:13 AM, Alex Kreimer &

Re: IDE for Python/django

2010-09-27 Thread Carlos Daniel Ruvalcaba Valenzuela
. Personally I like PyCharm so far. Regards, Carlos Ruvalcaba On Mon, Sep 27, 2010 at 6:00 AM, girish shabadimath <girishmss.1...@gmail.com> wrote: > actually i use vim for writing python scripts , i wanted IDE to easy my > tasks of writing script (like auto-completion) ,,,i dont want

Re: Many to many fields to string

2010-08-11 Thread Carlos Daniel Ruvalcaba Valenzuela
://docs.djangoproject.com/en/1.2/ref/templates/builtins/#for Regards, Carlos Daniel Ruvalcaba Valenzuela On Wed, Aug 11, 2010 at 12:53 PM, Wendy <we...@mutantfactory.com> wrote: > Hello, > I'm just getting started, and I'm returning a many to many object in > my template: > > p>{{ film.

Re: Reporting Library??

2010-08-11 Thread Carlos Daniel Ruvalcaba Valenzuela
use templates to generate the report), it is a nice addon which I'm currently using for a project, however, it is very new and the documentation is scarce at best, I had to patch it myself to fix some annoyances [3], but I can recommend this module. Regards, Carlos Daniel Ruvalcaba Valenzuela [1

Re: intermediate table in manytomany relationship not created

2010-08-05 Thread Carlos Daniel Ruvalcaba Valenzuela
There is an option to default to InnoDB tables on the configuration: http://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables Regards, Carlos Daniel Ruvalcaba Valenzuela On Thu, Aug 5, 2010 at 12:48 PM, bksfu <brian.j.kroe...@gmail.com> wrote: > When Django created

Re: Django IDE

2010-08-04 Thread Carlos Daniel Ruvalcaba Valenzuela
ting tools, it may be the best option but Wing is also preparing it's Django specific features for next release (available in beta builds). Regards, Carlos Daniel Ruvalcaba Valenzuela On Wed, Aug 4, 2010 at 12:27 PM, bagheera <neost...@go2.pl> wrote: > For python/django development i'

Re: Django IDE

2010-08-03 Thread carlos
I use Gedit, but when I get bored using the same vim cheer On Sun, Jul 18, 2010 at 5:39 PM, Fabian Ezequiel Gallina wrote: > 2010/7/18 Roald de Vries : > > > > Comparison of VIM and Emacs (what I've read): > > - Emacs is monolithic (does everything, for

Re: Many to many ajax widget for admin

2010-08-02 Thread Carlos Ricardo Santos
; > > > But I haven't seen anything in their documentation about support for > > > intermediary models like my Authorship model. > > > > > Has anyone had this problem and found a solution for it? > > > > > - Sævar > > -- > You received this

Re: where is my os.path

2010-08-02 Thread Carlos Ricardo Santos
; 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<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups

Re: Get request path without having a request object

2010-07-31 Thread Carlos Daniel Ruvalcaba Valenzuela
est If TEMPLATE_CONTEXT_PROCESSORS contains this processor, every RequestContext will contain a variable request, which is the current HttpRequest. Note that this processor is not enabled by default; you'll have to activate it. Regards, Carlos Daniel Ruvalcaba Valenzuela -- You received this message because

Re: Newbie: how to tell a URL for a page?

2010-07-29 Thread Carlos Daniel Ruvalcaba Valenzuela
: http://www.w3schools.com/jsref/dom_obj_frame.asp The iframe should contain a document object which should contain the URL loaded on the frame. Regards, Carlos Daniel Ruvalcaba Valenzuela On Wed, Jul 28, 2010 at 10:57 PM, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > This question

ModelChoiceField Question

2010-07-28 Thread Carlos Daniel Ruvalcaba Valenzuela
thoughts on this? Regards, Carlos Daniel Ruvalcaba Valenzuela -- 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 dj

Re: root_path in admin sites is None

2010-06-23 Thread carlos
i have the same problem i fixed: in urls.py root proyect before: ('^admin/(.*)', admin.site.root), after: (r'^admin/', include(admin.site.urls)), it work good now!!! bye 2010/6/23 Filip Gruszczyński > After migrating to 1.2 I encountered a problem in admin panel. My >

Problem_Inline_max_num

2010-05-10 Thread carlos
Hola, tengo un problema con django 1.2 rc 1 en los Inline bueno paso a explicarles, antes en la version 1.1.1 cuando colocaba un max_num = 20 me los pintaba bien ahora que pongo max_num = 9 me los pinta bien pero una ves que sobrepaso ese valor no funciona algo esta pasando con la version de 1.2

Re: Should Django handle uploaded files in PUT as well as POST?

2010-04-23 Thread Chester (Carlos Duarte do Nascimento)
This is a somewhat old topic, but a workaround for those (such as myself) who need to process parameters from the request body on non-POST methods (such as PUT) is to write: body_params = QueryDict(request.raw_post_data, encoding=request.encoding) and use this dictionary (body_params) in the

Re: relative links to css, images, javascript -> problem

2010-03-08 Thread Carlos Ricardo Santos
ers%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Cumprimentos, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users&qu

Django 1.0 admin - no "select all" checkbox

2010-02-27 Thread Carlos Ricardo Santos
Anyone noticed that django 1.0 admin has no "select all" checkbox in every model object view?\ Do i have to clear objects in shell if I need to clean them all? -- Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users&

Re: choices in model field error

2010-02-21 Thread carlos
hi copy de code in first line your models.py or views.py # -*- coding: UTF-8 -*- bye :) On Thu, Feb 18, 2010 at 7:55 PM, Karen Tracey wrote: > On Thu, Feb 18, 2010 at 11:18 AM, hooda_28 wrote: > >> hi im having a problem for about an hour now, i

Re: Twitter API

2009-12-27 Thread Carlos Ricardo Santos
Sorry.. scrobble is Last.fm, LOL :D 2009/12/27 Carlos Ricardo Santos <carlosricardosan...@gmail.com> > You have python-twitter and pyscrobble. > > > 2009/12/27 Mario <goober20...@gmail.com> > > Good afternoon, >> >> Is there a Twitter API that woul

Re: Twitter API

2009-12-27 Thread Carlos Ricardo Santos
2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- Cumprimentos, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: about django model save

2009-12-26 Thread Carlos Ricardo Santos
gt; To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- Cumprimentos, Carlos Ricardo Santos

Re: about django model save

2009-12-25 Thread Carlos Ricardo Santos
gt; phone_num > > > > > > Br, Chen Gang > > > > -- > > > > 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. >

django.contrib.comments Templates

2009-12-12 Thread Carlos Ricardo Santos
-django-comments/ but when I try to comment, no "preview comment" page appears. Anyone has ever tried to change comments templates? Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Django HTTPS and HTTP Sessions

2009-12-10 Thread Carlos Ricardo Santos
Is is possible to change the uploaded filename like: request.FILES['file']['filename']=current.user.username+'_'+str( current.user.id) It says 'InMemoryUploadedFile' object does not support item assignment. Anyway to override this? Thanks. -- You received this message because you are

Re: Django Flatpage Internationalization BUG

2009-12-07 Thread Carlos Ricardo Santos
t; :( > > On 7 Dic, 14:42, Carlos Ricardo Santos <carlosricardosan...@gmail.com> > wrote: > > Check in the admin panel if you have linked it to a site, then check > > settings.Py if the site_id matches the id of the site you associated in > the > > admin. &g

Re: Django Flatpage Internationalization BUG

2009-12-07 Thread Carlos Ricardo Santos
Check in the admin panel if you have linked it to a site, then check settings.Py if the site_id matches the id of the site you associated in the admin. On Dec 7, 2009 12:08 PM, "Cyberbiagio" wrote: Hi, i'm a new django developer, i need help for a strange bug: I have a

Re: Django tag cloud

2009-11-21 Thread Carlos Ricardo Santos
quot; 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<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://grou

Re: Django i18n

2009-11-16 Thread Carlos Ricardo Santos
I think pt-BR will fit. Just can't understand why the backoffice is translated and the main app not : ( Even in pt-Pt. On Nov 17, 2009 2:30 AM, "Kenneth Gonsalves" <law...@au-kbc.org> wrote: On Monday 16 Nov 2009 9:46:58 pm Carlos Ricardo Santos wrote: > I use to folders at a

Django i18n

2009-11-16 Thread Carlos Ricardo Santos
sponding to my language change request... I use to folders at app/locale: pt-PT en-GB Any ideas? Someone has implemented a foreign language before? Thanks in advance. -- Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Auth and Sites in Admin

2009-11-14 Thread Carlos Ricardo Santos
roups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > > -- Cumprimentos, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Gro

Re: weird error on django basic blog

2009-11-14 Thread Carlos Ricardo Santos
%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > > -- Cumprimentos, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: User.objects.filter( theUser.get_profile().paid='No' )

2009-11-14 Thread Carlos Ricardo Santos
tra...@gmail.com> > On Sat, Nov 14, 2009 at 11:21 AM, Carlos Ricardo Santos < > carlosricardosan...@gmail.com> wrote: > >> Hi, >> >> I extended the user class with a UserProfile, with the Django docs >> tutorial. >> But now I need to do a

User.objects.filter( theUser.get_profile().paid='No' )

2009-11-14 Thread Carlos Ricardo Santos
aught an exception while rendering: only a single result allowed for a SELECT that is part of an expression" Any advices? -- Greetings, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Form processing using bash script

2009-10-06 Thread Carlos Gustavo
Brilliant! Just what I needed to hear. :-) Thanks, Kevin. -Carlos. On Tue, Oct 6, 2009 at 3:56 PM, Kevin Teague <ke...@bud.ca> wrote: > > > > On Oct 6, 12:02 pm, Carlos Gustavo <geek.gust...@gmail.com> wrote: > > Thanks Kevin, > > > > I would give

Re: Form processing using bash script

2009-10-06 Thread Carlos Gustavo
Thanks Kevin, I would give it a shot. Doesn't sound as easy as I had hoped. :-) -Carlos. On Tue, Oct 6, 2009 at 2:55 PM, Kevin Teague <ke...@bud.ca> wrote: > > Use the os.subprocess module in the python standard library to invoke > the bash script from your django view

Re: Form processing using bash script

2009-10-06 Thread Carlos Gustavo
Hi Daniel, Thanks for the response to my mail. These input values are used by a bash script containing various C programs and the processing results in graph that needs to be displayed as an image plot on the response form. Thanks again. -Carlos On Tue, Oct 6, 2009 at 2:01 PM, Daniel Roseman

Form processing using bash script

2009-10-06 Thread Carlos Gustavo
in advance. Best regards, -Carlos. --~--~-~--~~~---~--~~ 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,

Re: Reading text files into mysql database

2009-10-01 Thread Carlos Gustavo
Thanks, Mark!!! Deeply appreciated! -Carlos On Thu, Oct 1, 2009 at 10:26 AM, Mark (Nosrednakram) <nosrednak...@gmail.com > wrote: > > Hello, > > If your data is in a CSV format I have a tool I wrote to do this a > while ago that has served me well several times: >

Re: Reading text files into mysql database

2009-10-01 Thread Carlos Gustavo
Thanks, Shawn!!! Deeply appreciated! -Carlos. On Thu, Oct 1, 2009 at 10:38 AM, Shawn Milochik <shawn.m...@gmail.com>wrote: > > > On Oct 1, 2009, at 9:25 AM, Carlos Gustavo wrote: > > > > > Hi All, > > > > I am a django newbie and so far it has bee

Reading text files into mysql database

2009-10-01 Thread Carlos Gustavo
Hi All, I am a django newbie and so far it has been great. How do I populate a mysql database table with data from a text file? Also How do I dump results of a database query into a text file. I have already created my django model for the mysql table. Thanks in advance. -Carlos

Re: checking for empty result in queryset

2009-09-15 Thread Carlos Leite
g or being redirected > to a 404? > > G. > > > > > -- Carlos Leite --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: Django ORM - Table Changes

2009-09-10 Thread carlos
ok only comment is you use django_evolution http://code.google.com/p/django-evolution/ "When you run ./manage.py syncdb, Django will look for any new models that have been defined, and add a database table to represent those new models. However, if you make a change to an existing model,

Re: auto populating primary key

2009-09-06 Thread Carlos A. Carnero Delgado
it based on the data entered in the form and save it to the > database by overloading the save() method. > > I am looking for pointers. http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods HTH, Carlos. --~--~-~--~~

Re: How to run a static html page as a section of django website?

2009-08-20 Thread Carlos A. Carnero Delgado
template will help? More @ http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-simple-direct-to-template HTH, Carlos. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Question about request.user

2009-08-10 Thread Carlos A. Carnero Delgado
Hi, On Mon, Aug 10, 2009 at 4:46 PM, David<ww...@yahoo.com> wrote: > Why request.user.username did not bind to "john" in this scenario? > Anybody knows what caused such a problem? And any ideas how to fix > it? Are you using the same web browser? May

Re: Database connection closed after each request?

2009-07-23 Thread Carlos A. Carnero Delgado
Hi, On Thu, Jul 23, 2009 at 5:24 PM, Glenn Maynard<gl...@zewt.org> wrote: > Why is each thread's database connection closed after each request? I believe that this is related to Django's shared-nothing-by-default approach. HTH, Carlos. --~--~-~--~~~---~--~

Re: Expert System

2009-07-18 Thread Carlos Eduardo Sotelo Pinto
should have added that Django is more like the glue that > connects your code for an expert system for instance) more easily > to html output and databases. An expert system is just one engine you > can slap into it. That's right, I am looking for a expert system joinig the engine and django

Re: Expert System

2009-07-18 Thread Carlos Eduardo Sotelo Pinto
t system to take it as a start poit to study about it that's i mean regards > > > - -- . ''`. Carlos Eduardo Sotelo Pinto ( KrLoS ) ,= ,-_-. =. : :' : Free and OpenSource Software Developer((_/)o o(\_)) `. `'` GNULinux Registered User #379182 `-'(. .)`-' `-GNULinux R

Re: Expert System

2009-07-18 Thread Carlos Eduardo Sotelo Pinto
with django > > > - -- . ''`. Carlos Eduardo Sotelo Pinto ( KrLoS ) ,= ,-_-. =. : :' : Free and OpenSource Software Developer((_/)o o(\_)) `. `'` GNULinux Registered User #379182 `-'(. .)`-' `-GNULinux Registered Machine #277661\_/ GNULinux Arequipa Users Group||Debian

Re: Expert System

2009-07-17 Thread Carlos Eduardo Sotelo Pinto
it. thanks > > > On Fri, Jul 17, 2009 at 11:22 PM, Joshua Partogi > <joshua.part...@gmail.com <mailto:joshua.part...@gmail.com>> wrote: > > What kind of expert system do you want to know. I think expert > system is a very broad topic. > > > On Sat,

Expert System

2009-07-17 Thread Carlos Eduardo Sotelo Pinto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi peolple some one knows somthing about works about expert system maden on python with django thanks a lot - -- . ''`. Carlos Eduardo Sotelo Pinto ( KrLoS ) ,= ,-_-. =. : :' : Free and OpenSource Software Developer((_/)o o

Re: Graphing (Pie Chart, Bar Graphs, Line Plots, etc) in Django?

2009-07-16 Thread carlos
yes man a have various for example : [1] pygooglechart, [2] PyOFC2, and library [3] ReportLab [1]. http://pygooglechart.slowchop.com/ [2]. http://btbytes.github.com/pyofc2/ [3]. http://www.reportlab.org/ good luck 2009/7/16 Keith Pettit > What is the best way to create

type object 'MyModel'' has no attribute 'id'

2009-07-04 Thread Carlos Eduardo Sotelo Pinto
th) else: pmform = ProductModelForm(maker_filter=maker_id, data=None, instance=ProductModel) return render_to_response('helping.html', {'mform': pmform}) -- Carlos Eduardo Sotelo Pinto a.k.a. krlos GNULinux RU #379182 || GNULinux RM #277661 GNULinux Arequipa Users Group ||

too many values to unpack

2009-07-04 Thread Carlos Eduardo Sotelo Pinto
', {'mform': pmform}) please give a hand -- Carlos Eduardo Sotelo Pinto a.k.a. krlos GNULinux RU #379182 || GNULinux RM #277661 GNULinux Arequipa Users Group || Debian Arequipa Users Group -- http://krlosaqp.blogspot.com pgp.rediris.es 0xF8554F6B GPG FP:697E FAB8 8E83 1D60 BBFB 2264 9E3D 5761

Select Multiple objects

2009-06-26 Thread Carlos Eduardo Sotelo Pinto
/m45a1591e my idea is having a forr cfor completing each select box, is for a suuport site thanks a lot - -- . ''`. Carlos Eduardo Sotelo Pinto ( KrLoS ) ,= ,-_-. =. : :' : Free and OpenSource Software Developer((_/)o o(\_)) `. `'` GNULinux Registered User #379182 `-'(. .)`-' `-GNULinux

Re: amCharts and Django

2009-06-14 Thread carlos
someone working with graphs statistic withs Django for examples PyOFC2, GChartWrapper, pygooglecahrt, but have one example with retrieve data of the databases or something that explains how to do thanks 2009/6/13 Travis Jensen > Anybody using amCharts with Django? I'd

OT: running custom management command from cron & Unicode output error

2009-06-06 Thread Carlos A. Carnero Delgado
regards, Carlos. >>> import sys >>> print sys.platform linux2 >>> print sys.version 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]' >>> import django >>> django.VERSION (1, 1, 0, 'beta', 1) --~--~--

Re: Help make matriz

2009-05-29 Thread Carlos Rocha
thank Ariel and Juan is true tutorial02 is help me very much thank again carlos 2009/5/29 Ariel Nunez <ingenieroar...@gmail.com> > Carlos, all the info you need to enable the admin and customize it for your > app is on this page: > > http://docs.djangoproject.com/en/de

Help make matriz

2009-05-29 Thread Carlos Rocha
datan the people introduced my model.py MULTIPLE_CHOICES = ((1,'nada'),(2,'nada1')) class Prueba(models.Model): colunm1 = models.CharField(max_length=60, choices=MULTIPLE_CHOICES) colunm2 = models.IntegerField() column3 = models.IntegerField() thx mi ingles is very bad carlos

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
ow to update just sqlite, if you'd rather do that than upgrade to a > level of Python that has a better sqlite included: > > http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-3-3-6-or-newer-strongly-recommended I see. Sorry for the noise and thank you both! Best regards, Carlos. --~

Re: Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
seen on Windows with SQLite, is that > what you're using? Yes, that very same combo. But now that you mention it, will try later on Linux with both SQLite and PostgreSQL. Thanks, Carlos. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Unintended date to Unicode string conversion

2009-05-23 Thread Carlos A. Carnero Delgado
This is a media file' >>> media_file.added_on u'2009-05-23 12:06:14.484000' >>> media_file.hits 11 Notice how, after the aggregation and annotation, the added_on field is now a Unicode string. What's I'm doing wrong? Best regards, Carlos. --~--~-~--~~--

Aggregation of field properties?

2009-05-13 Thread Carlos A. Carnero Delgado
ations) work, I can readily do Site.objects.annotate(downloads=Sum('archive__downloads')) and I'm getting what I expect. But I just hit a roadblock with the size, since it is an attribute of file_system_object. Can I aggregate over a field property? Best regards, Carlos. --~--~-~--~~

Re: FileField uploading into an user-specific path

2009-04-28 Thread Carlos A. Carnero Delgado
Oops, too quick to press reply :o On Tue, Apr 28, 2009 at 11:53 PM, Carlos A. Carnero Delgado > destination_file = open('somewhere based on the user', 'wb+') >  for chunk in request.FILES['audio_file'].chunks(): >      destination_file.write(chunk) >  destination_file.close() with

Re: FileField uploading into an user-specific path

2009-04-28 Thread Carlos A. Carnero Delgado
LES['audio_file'].chunks(): destination_file.write(chunk) destination_file.close() HTH, Carlos. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Moving a Django project to another directory/server

2009-03-14 Thread Carlos A. Carnero Delgado
control! Should the need arise for other production settings we will branch. So far this setup has worked well, although we're dealing with smallish projects and teams. Don't know if this helps but I'd find this thread interesting of others could provide their

Re: Accessing django app that is start with FCGI

2009-03-13 Thread Carlos A. Carnero Delgado
.com/2007/07/04/django-on-lighttpd-with-fastcgi/. Props to the original authors. HTH, Carlos. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Where to put jquery/dojo js files

2009-03-08 Thread Carlos A. Carnero Delgado
-files/?from=olddocs? Maybe it helps... Regards, Carlos. --~--~-~--~~~---~--~~ 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

Re: Iterating over a dictionary in templates

2009-02-08 Thread Carlos Pero
Oh excellent. New in 1.0, that makes sense. Thanks for the pointer. On Feb 5, 10:00 am, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Thu, Feb 5, 2009 at 10:21 AM, Carlos Pero <carlos.p...@gmail.com> wrote: > > > Searching this group, I found a number of ways to itera

Iterating over a dictionary in templates

2009-02-05 Thread Carlos Pero
Searching this group, I found a number of ways to iterate over a dictionary in a template to get access to both the key and the value. However, none of them covered the technique mentioned in this blog post:

Re: Django And os.path Behavior

2008-12-05 Thread Carlos A. Carnero Delgado
Hello, > The path in this demo contains "El Camarón de la Isla", where the > accent character is the trouble maker. Can you post your music.models? Best regards, Carlos. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > > > In the latest patches for multi-db the QuerySet that is returned is no > > longer fixed, but varies with the model's manager. That shoul

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
t does to get the connection and see how it differs from OracleQuerySet. Thanks. If you have anything else, I appreciate it. If I happen to solve the problem, you'll see it here. Carlos --~--~-~--~~~---~--~~ You received this message because you are subscribed to

multiple database support: oracle backend

2007-10-16 Thread Carlos Hanson
on_info', _local, lambda: connections[_default]) connection = LocalizingProxy('connection', _local, lambda: connections[_default].connection) But I don't see how to get the named connection in oracle/base.py. If that

multiple-db-support: reference model using different database

2007-09-21 Thread Carlos Hanson
and delete the data using information from both databases. Thanks for helping me figure this out. ;-) Carlos Hanson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-21 Thread Carlos Hanson
the latest patch to the branch and also updated ticket > 4747<http://code.djangoproject.com/ticket/4747>with the relevant patch > and details. > > Carlos: the patch attached to the ticket should be applicable against a > checkout of trunk at r6110. As I said in my previous message

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Carlos Hanson
On Sep 19, 5:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/20/07, Carlos Hanson <[EMAIL PROTECTED]> wrote: > > > > > Greetings, > > > I am using the current svn checkout of the trunk and would like to > > include the

merging multiple-db-support branch with svn trunk checkout

2007-09-19 Thread Carlos Hanson
Greetings, I am using the current svn checkout of the trunk and would like to include the multiple-db-support branch. What is the best way to do this? I will understand if the answer is read the svn manual (it's on my list of things to do). Thanks. Carlos Hanson

Saving a copy of a model

2007-08-10 Thread Carlos Hanson
now. Any suggestions? Carlos Hanson --~--~-~--~~~---~--~~ 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,

ManyToManyField: help_text missing when using filter_interface

2007-06-27 Thread Carlos Hanson
ut any customization, the help_text shows up at the end of the "form-row" div tag rather than after the label. I am using version 0.96 on SuSE 10.1 with Python 2.4.2. Thanks. Carlos Hanson --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: [database-api] Using .select_related() with a multi-table query (bug?)

2007-04-21 Thread Luiz Carlos Geron
Any ideas on how I can do this with one query? On 4/18/07, Luiz Carlos Geron <[EMAIL PROTECTED]> wrote: > Hi, > I have three models, listed at [1], that I want to get data from with > only one query, because of performance issues with my app. The way > that worked so far is: &g

[database-api] Using .select_related() with a multi-table query (bug?)

2007-04-18 Thread Luiz Carlos Geron
I found while developing with django. [1] http://dpaste.com/8743/ [2] http://dpaste.com/8581/ [3] http://dpaste.com/8582/ -- []'s, Luiz Carlos Geron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

simplifying a dynamic template lookup

2007-04-09 Thread Carlos Hanson
}} {% endifequal %} {% endfor %} {% endfor %} {{ item.total }} {% endfor %} Is there any way to simplify that template? Any suggestions on ways to create a better template? All the curly braces and percent signs are hard to look at. Thanks in advance. Carlos Hanson

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Carlos Yoder
te(field='bar', translated_text='nada', > language=Language('Spanish')) > > You can get the text for a specific translation like this: > a.translations.filter(field='bar', language=Language('Spanish')) :-O Would it be really that simple? -- Carlos Yoder http://blog.argentinaslov

Re: how are you handling i18n and m10l content?

2006-11-09 Thread Carlos Yoder
) with with enough time and skills will bite the bullet and start coding. And now I read what I wrote. Enough time *and* skills? That could be tricky ;-) Cheers, -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~~---~--~~ You received this message beca

Re: How would you do this on Django?

2006-11-06 Thread Carlos Yoder
Thank you Frankie. I guess I'm OK with the i18n part of the idea. Not so sure about the 'best practises' to implement, though (that was the general idea of this post). But many thanks for the links anyway. Regards, -- Carlos Yoder http://blog.argentinaslovenia.com/ >> Hello people,

How would you do this on Django?

2006-11-06 Thread Carlos Yoder
t I first too a look at Polyglot, a plugin for Wordpress, but I really want to stay away from PHP and do things right. Could anyone help me a bit on how to approach this? Thanks a million, and best regards, -- Carlos Yoder http://blog.argentinaslovenia.com/ --~--~-~--~~~-

Re: ado_mssql introspection patch

2006-10-27 Thread Carlos Yoder
ng that ADMIN table, etc. Thanks a lot! I'll keep you posted, Carlos On 10/27/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > OK, if we can narrow the possibilities down to a patch mistake, I can > tell you what I did: > > cywgin > go to django src dir (the 'trunk'

<    1   2   3   4   5   6   >