Django Error

2022-01-10 Thread Pablo Alonso
Can someone please help me with this error? NoReverseMatch at /store/Reverse for 'agregar_producto' with arguments '('',)' not found. 1 pattern(s) tried: ['cart/agregar/(?P[0-9]+)/\\Z'] I'm very new using Django. [image: Captura.PNG] -- You received this message because you are subscribed to

Re: Digest for django-users@googlegroups.com - 2 updates in 2 topics

2020-11-25 Thread PABLO CESAR VEGA VALVERDE
NO SOY HACKER >:c El mié, 25 nov 2020 a las 8:02, escribió: > django-users@googlegroups.com > > Google > Groups > > <

Zen of high load & high availability backend

2020-04-18 Thread J . Pablo Martín Cobos
-availability-backend/index.html Spanish: https://goinnn.github.io/zen-of-high-load-and-high-availability-backend/index-es.html Sincerely, -- Pablo Martín Cobos Software engineer Python/Django developer goi...@gmail.com -- You received this message because you are subscribed to the Google Groups

Re: [PROBLEM] Creacion de primera apps de djangogirls, error en models.py

2020-04-17 Thread Juan Pablo Romero Bernal
Saludos Lucas, Sería de mucha utilidad que nos mostraras los mensajes de error que obtienes para poder ayudarte. Saludos, On Fri, Apr 17, 2020 at 4:34 PM lucas bonet wrote: > Hola, estoy creando la primera aplicacion de django con pyton y cuando > llega el momento de configurar en el directori

Re: Django Session KeyError

2020-02-25 Thread Juan Pablo Romero Bernal
Hi, In your Django application, session middleware is enabled ? [1] [1] https://docs.djangoproject.com/en/3.0/topics/http/sessions/ On Tue, Feb 25, 2020 at 8:16 AM Guy NANA wrote: > I don't understand the first part of your answer : *Make sure your >> line request.session['ts_dataset_copy'], p

Re: From and Template in Django

2020-02-25 Thread Juan Pablo Romero Bernal
Hi, Yes, you can use an instance of Form in more than one template: See: https://docs.djangoproject.com/en/3.0/topics/forms/ for more details. On Tue, Feb 25, 2020 at 4:54 PM ben aziz zizah wrote: > Is that possible to use the same form in more than one template > > -- > You received this mes

Re: 'ssl_disabled' is an invalid keyword argument for connect()

2020-02-25 Thread Juan Pablo Romero Bernal
Hi Steve, The supported option is ssl, see: https://github.com/django/django/blob/stable/3.0.x/django/db/backends/mysql/client.py I hope this helps, On Tue, Feb 25, 2020 at 4:54 PM Stephen Loughin wrote: > The django doc > s sa

Re: Lots of errors after deploying and going live

2020-02-06 Thread Juan Pablo Romero Bernal
Hi Dave, First of all, what kind of environment are you using to production deployment ? May be if you give us some details about it we can help you. Bye, On Tue, Feb 4, 2020 at 4:36 AM Dave Ko wrote: > Hi guys, so this is a very general post, I have been working on a django > blog following

Re: __init__ method called every time on same APIView object

2019-10-30 Thread Juan Pablo Romero Bernal
Hi, Show some example of code On Wed, Oct 30, 2019 at 5:08 PM Diana María Bedoya Ramírez < dbed...@ikono.com.co> wrote: > Hello, > > I have an APIView object with an __init__method. In that __init__ I have a > loop that extends a class list variable. Every time I make a POST to the > url tha

Re: Django apk

2019-06-12 Thread Juan Pablo Romero Bernal
Hi, I think you have some alternatives: 1. Build an android native app (or using some cross-platform framework) that use your django app as an API (you can use django rest framework to make this task). 2. Build a PWA and use (as above) your django app as an API. 3. Use Briefcase [1] (project un

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
obody resolve it I will propose a change, but I know ifor experience it is very hard collaborate with code in Django, and more difficult with a new feature. To understand it, the best is to use the command with a simple template such as admin/index.html. Best, > > On Fri, Jan 18, 2019 at 7

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
Sorry, I reply beetween lines El vie., 18 ene. 2019 16:32, J. Pablo Martín Cobos escribió: > Hi another time, > > I am tring to reply every people in this email: > > Josh > > I was not using django.template.loaders.cached.Loader, but the result are > very similar i

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
> there are very little chances that your solution would make to django it > self. > > Improvements to rendering are always welcome, but they must come without > too much maintenance burden. > > On Thu, Jan 17, 2019 at 11:02 AM J. Pablo Martín Cobos > wrote: > >> Hi, &g

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
ess templates, so Django win time. We can get a backend a little faster with very little effort. Best! > On Thu 17 Jan, 2019 2:32 pm J. Pablo Martín Cobos >> Hi, >> >> From one year ago, I am using an own command for Django templates that >> unify them. With an exam

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
silly thing. Best, > Regards, > Maciej > > czw., 17.01.2019, 10:02 użytkownik J. Pablo Martín Cobos > napisał: > >> Hi, >> >> From one year ago, I am using an own command for Django templates that >> unify them. With an example it is easy to see. If I am t

What do you think about unify templates feature?

2019-01-17 Thread J . Pablo Martín Cobos
1. It is more fast. And in a real project a view can render easyly 50 templates 2. I use news.html to develop and news.unify.html to production. So I don't lose legilibility. What do you think about "unify templates feature"? Do you know if exists a similar public

Re: Question about dot notation syntax (Django source)

2018-02-15 Thread Juan Pablo Romero Bernal
Hi, You must read: https://docs.python.org/3/tutorial/modules.html and https://docs.python.org/3/tutorial/datastructures.html#dictionaries Cheers, On Thu, Feb 15, 2018 at 8:06 PM, drone4four wrote: > In, “Password management in Django >

Django module - include dependencies

2017-10-22 Thread Pablo Camino Bueno
Hi, I'm building my own Django package to publish it to PyPI. It has some JS dependencies. Some are mine, and some are external. What is the best way to include them? I can keep the js files within the plugin. I think this is something that other django packages do, although it's not very clean

Re: Keep logged in accross Sites

2017-07-05 Thread Pablo Camino Bueno
UTC+2), Constantine Covtushenko escribió: > > Hello Pablo, > > +1 to your solution > > Regards, > Constantine C. > > On Fri, Jun 30, 2017 at 9:06 AM, Pablo Camino Bueno > wrote: > >> Hello, >> >> I'm using Django Sites framework to hadle different sit

Keep logged in accross Sites

2017-06-30 Thread Pablo Camino Bueno
Hello, I'm using Django Sites framework to hadle different sites, with the same users. I'd like to add a link to switch between my sites, but I don't want to get redirected to login view. What is the best way? should I add a view that logs the user in the destination site and redirect? -- Y

Django settings - customize attributes per Site from admin

2017-06-06 Thread Pablo Camino Bueno
Hi, I'm using django sites framework. I've a model with a OneToOneField to Site model. This way the admin users can customize each site attributes from the admin panel. class CustomSite(models.Model): site = models.OneToOneField(Site) email_host_user = models.EmailField() ... S

Re: file upload fails with slow network bandwith in django

2016-02-17 Thread Pablo Conesa
El martes, 16 de febrero de 2016, 21:12:32 (UTC+1), James Schneider escribió: > > How long does the file upload work before receiving the error? > There is no response from the server (fiddler returns -1, whatever this means) >>> >>> Well, no response from the server d

Re: file upload fails with slow network bandwith in django

2016-02-16 Thread Pablo Conesa
Thanks once more James for your help and time. Answers below.. El martes, 16 de febrero de 2016, 8:33:08 (UTC+1), James Schneider escribió: > > > > On Mon, Feb 15, 2016 at 10:41 PM, Pablo Conesa > wrote: > >> Thanks James. answers in line: >> >> El lunes, 15

Re: file upload fails with slow network bandwith in django

2016-02-15 Thread Pablo Conesa
Thanks James. answers in line: El lunes, 15 de febrero de 2016, 23:04:48 (UTC+1), James Schneider escribió: > > > > On Mon, Feb 15, 2016 at 10:20 AM, Pablo Conesa > wrote: > >> Hi, I posted this in stackoverflow. Now I'm trying here: >> http://stackoverflow

Re: file upload fails with slow network bandwith in django

2016-02-15 Thread Pablo Conesa
p://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F6816215%2Fgunicorn-nginx-timeout-problem&sa=D&sntz=1&usg=AFQjCNEaoPVXq87HfcUZARiv5oAZjTM8Fw> > > On Mon, Feb 15, 2016 at 4:20 PM, Pablo Conesa > wrote: > >> Hi, I posted this in stackoverflow. Now I'm

file upload fails with slow network bandwith in django

2016-02-15 Thread Pablo Conesa
Hi, I posted this in stackoverflow. Now I'm trying here: http://stackoverflow.com/questions/35413649/file-upload-fails-with-slow-network-bandwith-in-django I've got a code working fine that uploads a file to a DJANGO server. It works fine on a fine connection. Now if, using fiddler to simulate

Iterating over 2 arrays or 1 record array in Django

2015-10-22 Thread Juan Pablo Rivera
I have a numpy record array with 2 values per slot in the array.The name and offset, I want to display both of these values side by side using a Django template. Python code import numpy as npfrom django.template import Template, Context, loaderfrom django.conf import settings dtype={ '

Re: Python-Social-Auth + Django

2014-04-10 Thread Juan Pablo Martínez
Hi Chad, the mailing list for that package is here https://groups.google.com/forum/#!forum/python-social-auth Bye On Thu, Apr 10, 2014 at 5:54 AM, Chad Hollman wrote: > Hi all, my name is Chad, I'm working a project for a club at my university > and my team and I are trying to provide a means

Populating textarea from one page to another

2014-01-03 Thread Pablo Garcia
reseller_server/templates/tracker.html And here is the cl for the page the link goes to, and the element i'm trying to populate is on line 52 https://critique.corp.google.com/#review/59053319/depot/google3/onlinesales/third_party_compliance/reseller_server/templates/record_updater.html Th

How to deploy a django project in the web?

2013-12-21 Thread Pablo Diaz
I've finished my django project but I'm only running it locally. I want to put it on a website -- 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+unsu

Re: How do I test my Django App on my Phone

2013-12-09 Thread Juan Pablo Romero Bernal
Hi, > I suggest setting up a URL using no-ip.org or similar service. > No-ip.org is free at this level and works great, at least on Ubuntu and > CentOS. I haven't tried other OS's. > Or you can use localtunnel (http://progrium.com/localtunnel/) it's easy to install and works fine on most *NIX

Re: How do I test my Django App on my Phone

2013-12-09 Thread Juan Pablo Romero Bernal
Hi, Your phone must be connected to the same network that your workstation is connected. So, the django app must running listening on local IP address like 192.168.1.2:8000 and from phone you can access the application using this IP. Hope this helps, On Mon, Dec 9, 2013 at 1:44 PM, Muhammad Al

Re: Nginx versus Apache

2013-10-08 Thread Juan Pablo Martínez
+1 nginx+gunicorn On Tue, Oct 8, 2013 at 5:09 PM, Mando wrote: > +1 nginx+uWSGI > > > On Tuesday, October 8, 2013 7:16:42 AM UTC-5, Andréas Kühne wrote: >> >> Hi, >> >> I was wondering, which server would be best for a production environment. >> Nginx or apache? At the moment we are running bot

Re: South Error in migration:

2013-03-27 Thread Juan Pablo Martínez
do 0001 --fake, your table south_migrations dont have the row indicating that initial On Wed, Mar 27, 2013 at 8:49 PM, Tim Cook wrote: > I modified one model from this: -- juanpex -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
I think to move the all javascript code from your templates to .js files, you must change the way your views are working. I think your url and view are expecting some parameters, for this reason the problem with urls and his generation. The case about the checkbox changing, can be resolved re-def

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
Hi, You can use data properties, for example: # Template # Javascript $('#address').editable({ type: 'text', url: $('#my_container').data('url'), .. }); Hope this helps, On Sat, Jan 26, 2013 at 8:54 AM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there. > > > I am moving

Re: Whats the point of having dicts in templates if one cannot access them by key?

2012-11-14 Thread Juan Pablo Tamayo
Thank you all. I have fix my issue icons sorteddict from the Python collections. Juan Pablo Tamayo H Sent from my Android phone On Nov 14, 2012 11:38 AM, "Bill Freeman" wrote: > > > On Tue, Nov 13, 2012 at 11:40 PM, Juan Pablo Tamayo wrote: > >> Let me explain, I h

Re: nested fields

2012-11-13 Thread Juan Pablo Tamayo
Maybe many_to_many relationships ? On Tuesday, November 13, 2012 11:43:20 AM UTC-5, Gink Labrev wrote: > > Hi, > > How to insert multiple, indefinite fields in a form ? I found this > component to Rails [1], that allows to

Whats the point of having dicts in templates if one cannot access them by key?

2012-11-13 Thread Juan Pablo Tamayo
Let me explain, I have a nested dictionary like: agenda = {'3': {'2012-11-11': , '2012-11-14': , ...}, '7': {'2012-11-9': , }, '2': {'2012-10-28': }, } And I want to access it by specifying the two keys. I've red that i must access the dict like (where attribute is an attribute of : {% fo

Date widget not HTML5

2012-10-24 Thread Juan Pablo Tamayo
Is there any reason not to have the date widget input tag have the attribute type="date" instead of just type="text"? I mean, most browser do not treat it differently, but it tells them that they should; besides it would mean that Django tries to support the full range of HTML5. Is there a

Re: perfectionists... motto doesn't fit

2012-10-12 Thread Juan Pablo Martínez
gooby pls :) On Fri, Oct 12, 2012 at 6:49 AM, Moonlight wrote: > > Some people make the argument of "whatever tool is right for the job".. >> >> Sure - you could make a handsome shed with your first born's plastic tool >> set, but for perfectionists it's not just about the end result, it's about

Re: How to translate Lookup values in Django?

2012-10-03 Thread Juan Pablo Martínez
of 139 values. It would be difficult to > keep that in the model itself. ;-) > But you are right about smaller lookups. > > Regards, > Houman > > On 3 Oct 2012, at 01:57, Juan Pablo Martínez wrote: > > GENDER_CHOICES = ( > ('male', _(u'Male'))

Re: How to translate Lookup values in Django?

2012-10-02 Thread Juan Pablo Martínez
GENDER_CHOICES = ( ('male', _(u'Male')), ('female', _(u'Female')), ) gender = models.CharField(_(u'Sex'), max_length=10, choices=GENDER_CHOICES) On Tue, Oct 2, 2012 at 7:23 PM, Houmie wrote: > Django has an excellent support for internationalization, any English > expression within Mode

Re: Does django's built-in comments component support pagination?

2012-09-23 Thread Pablo Sanfilippo
Sorry, i thought that views handle comments. I see now that comments are handled by the framework itself. El domingo, 23 de septiembre de 2012 11:12:10 UTC-3, Scarl escribió: > > I wonder is it possible to display 10 comments on one page? If it can, how > to do it? Using the django.core.paginat

Re: Does django's built-in comments component support pagination?

2012-09-23 Thread Pablo Sanfilippo
https://docs.djangoproject.com/en/dev/topics/pagination/?from=olddocs#using-paginator-in-a-view This is a perfect example. You have to replace de model by the model of your comments. On Sunday, September 23, 2012 11:12:10 AM UTC-3, Scarl wrote: > > I wonder is it possible to display 10 comments

Help with M2M/Foreign - Add button to forms like admin panel

2012-09-06 Thread Pablo Catalina
Hi, I want to add a button like admin panel to the M2M or Foreign key fields. With a popup (or something else) to add a new model (like in the admin panel). Ex. #Models class Vendor(models.Model): name = models.CharField(max_length=255,blank=False,unique=True) class Product(models.Model):

Re: Add a form to admin side

2012-07-30 Thread J . Pablo Martín Cobos
Hi, You can use this: http://pypi.python.org/pypi/django-form-admin This app is very simple and very nice. Always help me in every project. I write a post explain this: http://www.yaco.es/blog/en/django/2012/05/how-to-integrate-forms-in-the-django-admin-site/ 2012/7/27 Leandro Alves > Thi

Re: Custom model field as foreign key

2012-06-19 Thread Juan Pablo Martínez
You saw this? https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#django.db.models.Field.to_python On Tue, Jun 19, 2012 at 9:38 AM, Melvyn Sopacua wrote: > Hi, > > When using a custom field as primary key, and subsequently as a > ForeignKey the database representation gets stored as

Re: Language Translation using multilingual in django

2012-05-10 Thread Juan Pablo Martínez
If you only want to display information but dont want to work with translations in code you can try https://github.com/juanpex/django-model-i18n/ On Thu, May 10, 2012 at 10:13 AM, Madhu wrote: > Hi! > I am new in django. > I use multilingual & create flatpages. > I add different languages into

Re: Best approach for multiple sites in a single deployment?

2012-04-10 Thread Juan Pablo Martínez
Apache VirtualHost do that. Listen 39986 NameVirtualHost *:39986 ServerLimit 2 ServerName domain1.com ServerAlias www.domain1.com WSGIProcessGroup django_group1 WSGIDaemonProcess django_group1 processes=2 threads=12 python-path=/home/user/djangosite:/home/user/path/python2.7 display-name=%{GROU

Re: Template file not recognized for some strange reason

2012-03-30 Thread Juan Pablo Martínez
Try TEMPLATE_DIRS = ("*C:*/Users/Documents/Music\ App/redlab/ templates",) On Fri, Mar 30, 2012 at 12:58 AM, Mika wrote: > TEMPLATE_DIRS = ("/Users/Documents/Music\ App/redlab/ > templates",) > -- juanpex -- You received this message because you are subscribed to the Google Groups "Django

Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-13 Thread J . Pablo Martín Cobos
.py#L57 I paste of the post in the blog [1]: "Should be generic, configurable and extensible" "It is important to notice that neither the inline edition or translation cannot replace an administration of content or tags, but they can greatly improve user experience." REF'

Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-12 Thread J . Pablo Martín Cobos
2012/1/11 Juergen Schackmann > Hi, > this looks really great. > Thanks > I have 3 questions for which I would highly appreciate the answers: > > I hope have three answers > 1. What is the best way to include some form magic, i.e. sending the > changes not directly to the model but to a form

A demo of django-inlinetrans and django-inplaceedit

2012-01-10 Thread J . Pablo Martín Cobos
/contribuciones/2012/01/inline-editing-and-translating-in-django/ Regards, -- Pablo Martín -- 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, sen

Extracting the database name from an object

2011-09-27 Thread Juan Pablo Romero Méndez
Hello, Suppose I get an object from a non-default database: ob = MyModel.objects.using('somedb').get(pk=1) Is it possible later to retrieve the database name just from the object? ob.db?? Regards, Juan Pablo -- You received this message because you are subscribed to the Goo

Re: template list empty in with django test client

2011-08-28 Thread Juan Pablo Romero Méndez
My fault. I was testing from the console. Within an actual test the request does have the templates. Juan Pablo El día 28 de agosto de 2011 17:50, Juan Pablo Romero Méndez escribió: > Hello, > > I'm using the django test client, like this: > >>>> c = Client()

template list empty in with django test client

2011-08-28 Thread Juan Pablo Romero Méndez
Hello, I'm using the django test client, like this: >>> c = Client() >>> r = c.get("/content/new/") >>> r.status_code 200 >>> r.templates [] Is this normal? Regards, Juan Pablo -- You received this message because you are subscribed to

Re: Tutorial: New class based generic views

2011-08-09 Thread Juan Pablo Romero Méndez
Thanks for the feedback Gelonida! 2011/8/9 Gelonida N : > On 08/09/2011 03:33 PM, Juan Pablo Romero Méndez wrote: >> Hey guys, >> >> This is the first part of a series of blog posts I'm writing about >> class based generic views: >> >> http://pse

Tutorial: New class based generic views

2011-08-09 Thread Juan Pablo Romero Méndez
Hey guys, This is the first part of a series of blog posts I'm writing about class based generic views: http://pseudocorta.blogspot.com/2011/08/django-generic-views.html Cheers! Juan Pablo -- You received this message because you are subscribed to the Google Groups "Django us

Prototype: LINQ-esque Manager for Django models

2011-06-05 Thread Juan Pablo Romero Méndez
jects.where(lambda c: c.poll.question.contains('aa')) Choice.objects.where(lambda c: c.votes == c.anumber) Choice.objects.where(lambda c: c.votes > c.anumber) https://github.com/jpablo/django-orm-lambdas Regards, Juan Pablo -- You received this message because you are subscribe

django admin and static files

2011-05-11 Thread Juan Pablo Romero Méndez
/', the admin app is unable to find their own admin files. What could I do? Regards, Juan Pablo -- 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 unsubsc

Re: Question about ModelAdmin.formfield_for_foreignkey

2011-05-05 Thread Juan Pablo Romero Méndez
d, request, **kwargs) Regards, Juan Pablo 2011/5/5 Daniel Roseman > On Thursday, May 5, 2011 10:32:47 PM UTC+1, juanpa wrote: >> >> Hello, >> >> Is it possible to obtain a reference to the modified object >> in ModelAdmin.formfield_for_foreignkey? >

Question about ModelAdmin.formfield_for_foreignkey

2011-05-05 Thread Juan Pablo Romero Méndez
Hello, Is it possible to obtain a reference to the modified object in ModelAdmin.formfield_for_foreignkey? Thanks! Juan Pablo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Select list populated from an object method (admin app)

2011-05-03 Thread Juan Pablo Romero Méndez
Ok, I learned about ModelAdmin.formfield_for_foreignkey, which let's me access the current user. What I can't find now is the instance asociated the db_field parameter. El 3 de mayo de 2011 14:19, Juan Pablo Romero Méndez < jpablo.rom...@gmail.com> escribió: > Hello, >

Select list populated from an object method (admin app)

2011-05-03 Thread Juan Pablo Romero Méndez
t of Transition objects. What I'd like is to do is to populate a select list in the change_form with the list of transitions allowed for the object. The tricky thing is that for this list to be calculated, the code needs access to the current user. Regards, Juan Pablo -- You received this

Re: Django Admin template

2011-05-03 Thread Juan Pablo Romero Méndez
For this, django-google-toolbar is invaluable. It tells you exactly which templates were used in rendering some url. Coupled with pycharm's "find file by name" feature (Ctrl+Shift+N) it names really easy to jump to any name file. Regards, Juan Pablo 2011/5/3 Rich > I kno

Using different choices in different ModelAdmins

2011-04-25 Thread Juan Pablo Romero Méndez
Juan Pablo -- 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...@googlegroups.com. For more options, v

Re: Connecting to a database

2011-04-24 Thread José Pablo Méndez Soto
Thanks Mate, Have a good one! ** On Sun, Apr 24, 2011 at 6:53 AM, Andrew Volozhanin wrote: > yes, SQLite doesn't use any SQL server. It consists of a database file. > That's why you access sqlite databases by the filename. > But mySQL, postgresql use such servers. And you access them by connect

Re: Connecting to a database

2011-04-24 Thread José Pablo Méndez Soto
That makes sense. Can you please tell me then, if os.path.dirname(os.path.abspath( __file__ )) + '/ database/local.db', would be something relative to SQLite? Many thanks *José Pablo Méndez * On Sun, Apr 24, 2011 at 1:34 AM, Daniel Roseman wrote: > On Sunday, April 24, 20

Re: Initial install

2011-04-22 Thread José Pablo Méndez Soto
from CDR-Stats.org want me to do that... Would you say its definitely required going through the mysqldb procedure? *José Pablo Méndez * On Fri, Apr 22, 2011 at 8:30 PM, Pedro Kroger wrote: > Hi Hurin, > > Both versions will work fine with MySql, but I recommend you instal

Unidirectional relations

2011-04-19 Thread Juan Pablo Romero Méndez
Hello, Is it possible to create unidirectional relations within django's orm? What I mean is a situation where a parent has a children_set of references to children, but the children don't have any reference to the father. Regards, Juan Pablo -- You received this message becau

How to filter the list_display in the django admin with the request.session[user_id]

2011-03-30 Thread Pablo Vidal
I need to know how to filter in the django admin model License, the licenses of the user logged-in to the admin. class License(models.Model): user = models.ForeignKey('wiki.User') name = models.CharField(max_length = 100) def __unicode__(self): return self.name Example: So i

Re: django charts

2010-11-23 Thread Pablo Ilardi
My 2 cents, I'm using http://code.google.com/p/flot/ does the job on the browser side, you just have to pass it the data from django, it works very good and is cross browser. - Pablo On Nov 19, 3:56 am, Priya wrote: > Hi, > I am a new user to django ,can anybody please help me r

Raw SQL queries and nested fields

2010-07-02 Thread pablo platt
Hi I have a Product model that holds info common to all product types. Product has a m2m categories field. SimpleProduct and BundleProduct extends Product (one2one relation). BundleProduct have a m2m products field (only SimpleProducts allowed). class Product(models.Model): > name=models.CharFi

recommended app for editable settings in the admin?

2010-07-01 Thread pablo platt
Hi I need to let the admin change settings in the admin interface. Settings could be tax_rate, admin email, site description... The straight forward approach is to have a model of key/value pairs in the db. The key/value pairs could be cached in request.settings on the first access like request.us

post_save and post_delete signals for a base class

2010-04-30 Thread pablo platt
Hi, Are signals suppose to fire on a base class? I have ChildModel that extends ParentModel. ParentModel is a real class not abstract. When creating a ChildModel object the post_save signal doesn't fire on the ParentModel but when deleting a ChildModel the post_delete signal fires on the ParentMod

Re: loading fixtures in Oracle gives IntegrityError because of AUTH_PERMISSION table

2010-04-21 Thread pablo platt
0 at 9:41 PM, Tom Evans wrote: > On Wed, Apr 21, 2010 at 7:24 PM, pablo platt > wrote: > > Hi > > > > I'm migrating a django1.1 project from MySQL to Oracle xe. > > I've created fixtures in MySQL and I'm trying to load them to Oracle. > > When Tryi

Re: loading fixtures in Oracle gives IntegrityError because of AUTH_PERMISSION table

2010-04-21 Thread pablo platt
When I'm creating the fixtures without contenttypes and auth and loading the fixtures in Oracle I'm not getting an error but nothing is being loaded: python manage.py dumpdata --exclude=contenttypes --exclude=auth > fixture.json On Wed, Apr 21, 2010 at 9:24 PM, pablo platt wrote:

loading fixtures in Oracle gives IntegrityError because of AUTH_PERMISSION table

2010-04-21 Thread pablo platt
Hi I'm migrating a django1.1 project from MySQL to Oracle xe. I've created fixtures in MySQL and I'm trying to load them to Oracle. When Trying to load the fixtures I'm getting: IntegrityError: ORA-1: unique constraint (USER.SYS_C004253) select TABLE_NAME, COLUMN_NAME from user_cons_columns w

Oracle xe - unique constraint when loading fixtures

2010-04-19 Thread pablo platt
Hi I have a Django1.1 project running with MySQL that I'm trying to export to Oracle xe. I've created fixtures with the project running MySQL with: python manage.py dumpdata > fixture.json and trying to load them to Oracle with (after syncdb): python manage.py loaddata fixture.json The error I'm

Oracle - DatabaseError: ORA-01830 with a legacy db

2010-04-18 Thread pablo
Hi, I had a Django1.1 project that use a legacy MySQL db. After importing the db to oracle 11g I'm getting: DatabaseError: ORA-01830: date format picture ends before converting entire input string I've found several posts and tickets but havn't found a fix. How can I find what is the part that c

very simple noob question - annoying caching problem

2010-04-02 Thread Pablo Cubico
Hi Guys! I'm new to Django AND Python, but I do have a long experience in configuring Apache, and PHP programming. Now, I was testing this simple view: --- def get_value(request): return HttpResponse(3) --- It worked, it printed "3", everything ok. Now I changed i

change inlines fields and custom validation in the admin

2010-03-27 Thread pablo
Hi I have two models, Model1 and Model2. Model2 appears as inline in Model2. Instances of Model2 has a 'parent' field so I have a parent-child relationship. Instances with the parent field set should appear as part of the parent instance and removed from the formset. I'll add a ModelMultipleChoic

using ForeignKeyRawIdWidget

2010-02-26 Thread pablo platt
Hi, I want to extend ForeignKeyRawIdWidget so I want to be able to use it without setting raw_id_fields. With the following I don't get an error but I see no effect: # models.py class Product(models.Model): ... class GroupProduct(Product): ... products = models.ManyToManyField(Produ

Re: two different models, order by date

2010-02-24 Thread Pablo Ilardi
ehow later what is the real object type to retrieve the missing object attributes later). If there's no common table the only simple sorting possibility, I'd say, is to sort then in memory. - Pablo On Feb 24, 11:40 am, Jirka Vejrazka wrote: > Hi, > > > i have a simple que

Re: Python based web reporting tool?

2010-01-08 Thread Pablo Ilardi
I have used http://www.htmldoc.org/ in different projects, it is very simple and useful as long as you don't need to support for very complex PDF formats. Just create the htmls with django and transform it by command line with htmldoc. - Pablo On Jan 8, 7:17 am, Hinnack wrote: > I

Re: No module named urls (again)

2009-12-16 Thread Pablo Solera
rk. Anyway, this is now working. For future reference, if anyone has this problem, check also if your manage.py it´s on the root folder, not on the src. Thanks again for your help. Pablo Solera On Dec 15, 9:38 pm, Michael K wrote: > On Dec 15, 3:18 pm, Pablo Solera wrote: >

No module named urls (again)

2009-12-15 Thread Pablo Solera
Hi everyone, This is my first post ans as usual it deals with a problem. I hope it isn´t answered yet. I´ve searched across the group and didn ´t find the solution (A similar problem didn´t detail the solution - no renaming here) Ok lets describe it: I´m trying to start developing with eclipse +

django-treebeard with several models in the same tree

2009-12-03 Thread pablo platt
Hi, I have a catalog with ProductClass, Category and Product models. ProductClass can have ProductClass and Category child nodes. Category can only have Product child nodes. Can I implement this with django-treebeard or maybe with django-mptt? Thanks -- You received this message because you ar

django-treebeard or a simple model?

2009-11-30 Thread pablo platt
Hi, I'm building a simple catalog. I have nested categories. Each category can have either child categories or products but not both types. I need to read only one level of child nodes at a time to create categories and maybe move a branch. I think I'm going to use two types of models instead of

Sitio que estamos lanzando

2009-09-23 Thread Juan Pablo Romero Méndez
Chequen este sitio web que estamos lanzando, a ver que les parece: http://www.quetanprincipeeres.com.mx/ Saludos, Juan Pablo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Memory limits

2009-09-13 Thread Pablo Escobar
Hi i'm wondering what is memory consumption for django 1.1 + postgre. Will it be enough to have VPS with 256 MB of RAM as entry level for recent projects? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: I need to get psycopg2 installed on Mac OS X 10.5

2009-07-15 Thread Juan Pablo Romero Méndez
I remember that there were some issues, but unfortunately I didn't document how I resolved them :( Juan Pablo 2009/7/14 Kevin : > > Thanks a lot Juan!  It works fine on my machine.  Would you be able to > share your compilation steps? > > On Jul 14, 7:32 am, Juan Pablo Ro

Re: Django way to design this model

2009-07-08 Thread Juan Pablo Romero Méndez
Mhh... I don't fully understand your question. Regarding the radio buttons I think it is in the tutorial. What search fields are you talking about? Juan Pablo 2009/7/8 Divesh Gidwani : > > Hey, > > Newbie to Django, and have just finished part 2 of the tutorial on the >

trying to understand the session logic

2009-07-03 Thread pablo
Hi, In the session module in backends/base.py _get_new_session_key creates a random string - the session_key which is sent to the user as a session_cookie. The encode function takes the session_dict pickle it and hash it with md5(pickle + secretKey) The encoded result is saved to the database.

Re: ORACLE_HOME in wsgi script

2009-06-04 Thread Pablo Suárez Hernández
hope this helps you. Regards, Pablo. SlafS escribió: > Hi! > > I'm trying to run Django app with mod_wsgi and Oracle, but when I try > to configure it I always get an internal server error (500) with this > error.log: > > ImproperlyConfigured: Error loading cx_Oracle module: l

ifequal tag within nested for: html forms

2009-05-25 Thread Pablo López
ProblemY: ME high medium low none

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread J . Pablo Fernández
On Apr 22, 9:46 pm, Phil Mocek wrote: > On Wed, Apr 22, 2009 at 12:22:08PM -0700, J. Pablo Fern?ndez wrote: > > I already know about how to separate settings between development and > > production; but that's not what I'm trying to do and I couldn't find &

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread J . Pablo Fernández
On Apr 22, 10:13 pm, Phil Mocek wrote: > On Wed, Apr 22, 2009 at 12:46:32PM -0700, Phil Mocek wrote: > > [What you've repeatedly asked is] explained in the Django > > settings documentation that I referenced earlier, that you > > apparently did not read before asking your question or after I >

Re: Changing MEDIA_ROOT while running tests (as in ./manage.py test)

2009-04-22 Thread J . Pablo Fernández
with a settings files I don't care because it's just for a test, it's not for production. As long as it works I'm ok. Thanks. On Apr 22, 4:39 pm, Phil Mocek wrote: > On Tue, Apr 21, 2009 at 11:29:38PM -0700, J. Pablo Fern?ndez wrote: > > I need to change MEDIA_ROOT whil

  1   2   >