Re: file list with os.walk non unicode chars like spanish ~n

2009-09-02 Thread Juan
Hi I have the same problem. Have you found any solution? Thanks and regards. On 15 ago, 17:18, fruity wrote: > Hi everyone, > > This is not my code, but the code of washtub the liquidsoap controller > made with django so for I've mailed both ML, django and liquidsoap > > I have a directory ful

Re: MySpace clone using Django? Is it possible?

2008-12-19 Thread Juan Hernandez
yes! go to the bahamas ;) On Fri, Dec 19, 2008 at 2:45 PM, James Bennett wrote: > > On Fri, Dec 19, 2008 at 12:41 PM, lekvar...@gmail.com > wrote: > > Hi, I wanna know wich of the well known frameworks is the best choice > > for myspace-clone community website. > > Since you're basically going t

Django app deployment creating users without admin app

2008-12-21 Thread Juan Kinunt
Hi! What is the best practice to deploy a Django application creating a user but not installing the admin app. I want to deploy my app to clients cleanly (like i.e "make install") and I need to create a user to be able to start using the django app. I think that a Django app is a bit complicated to

Re: I'm moving to Oxford

2009-01-14 Thread Juan Hernandez
yes, we are going to miss you very much ;) So long london! On Wed, Jan 14, 2009 at 10:10 AM, Marc Boivin wrote: > Glad you let the whole Django community know ;) > > > On 09-01-14, at 08:52, "Will McGugan" wrote: > > Hi, > > I'm sending this out to everyone in my gmail contacts, because I'm la

pagination best practices

2008-08-22 Thread Juan Hernandez
I have this very simple and primitive pagination method being called with this instruction in urls.py ### (r'^pyisp/menu/(\d+)/$', 'mail.views.menuPaginator'), ### This is the method ### def menuPaginator(request, number): domains = g.objects.all() paginator = ObjectPaginator(domains, 1

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
any suggestions?? hehehe On Sat, Aug 23, 2008 at 7:35 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > I have this very simple and primitive pagination method being called with > this instruction in urls.py > > ### > (r'^pyisp/menu/(\d+)/$', 'mail.views.me

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
> > > Using the Pagniator makes it so that when you hit the DB, the retrieved > results are limited to those relevant for the page you are displaying. You > are not reading the whole table and then tossing away everything except what > is on the page your are displaying, you are only reading from

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
I think I get it... domains = g.objects.all() just makes the QuerySet and paginator = ObjectPaginator(domains, 10) executes the query limiting the records to the one requested... Excellent Thanks for your help jhv On Mon, Aug 25, 2008 at 12:53 AM, Juan Hernandez <[EMAIL PROTECTED]>

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
Yep, thank you very much jhv On Mon, Aug 25, 2008 at 1:09 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 1:23 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > >> >> So, let's say that everytime i get a page, the internat query to the db

best practices editing data

2008-08-26 Thread Juan Hernandez
Hey there again. I have a question, lets say that I have this model: class Users(models.Model): email = models.CharField(primary_key=True, maxlength=240) password = models.CharField(maxlength=60) name = models.CharField(blank=True, maxlength=150) description = models.CharField(bla

Re: best practices editing data

2008-08-26 Thread Juan Hernandez
I solved it base_fields method in form_for_instance() Thanks jhv On Wed, Aug 27, 2008 at 12:53 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > Hey there again. > > I have a question, lets say that I have this model: > > class Users(models.Model): > email = models.Ch

Re: Django and CSS

2008-08-27 Thread Juan Miguel
variable > MEDIA_URL wich says "This URL handles the media served from > MEDIA_ROOT" because the media files accessed via the MEDIA_URL doesn't > have to be in the same machine. So, is intended that the two variables > refer to the same files? > > > -- ---

problem with models while using User's ID as fk to another table

2008-09-07 Thread Juan Hernandez
Hey there, I have this model: from django.db import models from django.contrib.auth.models import User import datetime class Section(models.Model): author = models.ForeignKey(User) name = models.CharField(maxlength=30) # just the date creation_date = models.DateField(default=datet

Re: problem with models while using User's ID as fk to another table

2008-09-07 Thread Juan Hernandez
DUH hehehe... thanks Karen On Mon, Sep 8, 2008 at 4:26 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Sun, Sep 7, 2008 at 4:43 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > >> Hey there, I have this model: >> >> from django.db import models >> f

Re: New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread Juan Hernandez
nice dude :) On Fri, Sep 12, 2008 at 9:59 AM, Rock <[EMAIL PROTECTED]> wrote: > > Very interesting. Nice work. > > That scrolling calendar widget near the bottom right of the home page > needs a reset button. > Once you scroll a bit, it fills up with so many events that finding > your way back to

Re: javascript

2008-09-19 Thread Juan Hernandez
what you need here is to enable the static files module or at least, use them inside your templates On Sat, Sep 20, 2008 at 9:33 PM, yozhik <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm learning django and ran into the following problem. I have an html > file with an external javascript file. Th

Re: MySQL case sensitivity

2008-09-22 Thread Juan Hernandez
I've got a MySQL database running on Windows (MySQL on Windows is not > case sensitive) That does not depends on the OS, depends on the Charset established in the DB. Check the charset being used at the DB and then run syncdb again --~--~-~--~~~---~--~~ You receiv

Re: JOB OPPORTUNITY IN LEICESTERSHIRE, ENGLAND

2009-01-27 Thread Juan Hernandez
djangogigs.com On Tue, Jan 27, 2009 at 9:27 AM, l...@hiveonline.co.uk < l...@hiveonline.co.uk> wrote: > > We are a small, rapidly expanding, company near Loughborough in > Leicestershire and are looking for people who are experienced in using > Django to join our development team. You will need t

Models and select

2009-03-17 Thread Juan Hernandez
Hi there: I have this model for example class Categories(models.Model): name = models.CharField(max_length=30) which holds this data on the DB ++--+ | id | name | ++--+ | 1 | Musica | | 2 | Programacion | | 3 | Libros | | 4 | Politica

yet another unicode question...

2009-03-18 Thread Juan Hernandez
and I also have DEFAULT_CHARSET = 'utf8' at settings.py How can I have django display html code from the databse without any problems? Thanks a lot Juan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Best distro for django

2009-07-03 Thread Juan Hernandez
It doesn't matter. All you have to consider is what kind of modules are you going to be working most of the time and evaluate how easy or hard it is to compile them or install them in that OS. I personally choose any debian based distro because apt-get/aptitude package manager is very powerfull. I

best approaches with render_to_response and large forms

2009-07-21 Thread Juan Hernandez
every field for cleaned_data['xxx'] at once instead of writing every single line? I am doing a list and then a map() against it but I feel I'm not using the best practice here... any thoughts? Thanx a lot people Juan --~--~-~--~~~---~--~~ You receive

Re: NASA is using Django for their NEBULA project

2009-07-30 Thread Juan Hernandez
a headhunter is flying around!! BTW teksystems hates me :) On Thu, Jul 30, 2009 at 12:24 PM, mhanb...@teksystems.com < mhanb...@teksystems.com> wrote: > > Hello Django devs! > > I'm supporting NASA on their NEBULA project and they're looking for > Python / Django experts to join their team here

Re: Django, CMS, CSS newbie question

2009-08-11 Thread Juan Hernandez
you can start here www.djangobook.com On Tue, Aug 11, 2009 at 10:58 AM, eldonp2 wrote: > I would like to start my own website. I > figured, since I don't know much, that I would start with a CSS > template and work back. How can I use a free template and then > integrate Django-Cms and Django i

Re: How to display the recent comments

2009-04-18 Thread Juan Hernandez
please define more what you means with comments On Sun, Apr 19, 2009 at 6:10 PM, Bastien wrote: > > Hi, > > I try to find the way to display the recent comments for a given site, > regardless of app / model but the doc doesn't show much, anybody has > it already? thanks > > > --~--~-~--

Re: Expert

2009-05-23 Thread Juan Hernandez
where could I download third party django apps?? On Sun, May 24, 2009 at 8:21 PM, Tim Chase wrote: > > > I like you to plan me a timetable to learn Django from a to z > > in 3 months pleas help me. > > You don't mention your starting point: > > - Do you already have /any/ programming skills? >

Re: Help make matriz

2009-05-29 Thread Juan Hernandez
repite lo que quieres hacer en espanol On Sat, May 30, 2009 at 5:13 PM, Carlos Rocha wrote: > I need help I have a data matrix of 6x6 or more what I need is to make the > matrix within the Django admin, but not make them any ideas > example: > colunm1 | colunm2 | colunm3 | > first rowdata1

Using the django orm outside a web system

2009-06-03 Thread Juan Hernandez
Hey there people: I started developing a django application where a user takes a big text file and loads it into a database. I have been able to do pretty much everything but I've been having some problems on scheduling tasks involving the django ORM. I know that python manage.py shell loads the

Re: Using the django orm outside a web system

2009-06-03 Thread Juan Hernandez
thanks a lot everybody for your help, I really appreciate it jhv On Thu, Jun 4, 2009 at 11:22 AM, Tom Evans wrote: > > On Thu, 2009-06-04 at 10:44 +1930, Juan Hernandez wrote: > > Hey there people: > > > > I started developing a django application where a user takes

Re: reservation & booking system

2009-09-29 Thread Juan Hernandez
That is such a wide area of development On 9/29/09, Eesti Mate wrote: > > Hello List, > > I'm looking for some modules to realize a reservation and booking > system, preferably with a nice calendar interface. I did some research > today, but didn't found what I was looking for... maybe because I

Re: regex infinite loop with 100% cpu use in django.forms.fields.email_re - DOS hole?

2009-10-09 Thread Juan Hernandez
SHR S %CPU %MEMTIME+ COMMAND 13886 juan 20 0 17556 12m 1992 R 95 1.3 0:59.61 ipyth*on and stays like that for ever... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

using ORM Parent->child rendering inside a template

2009-10-27 Thread Juan Hernandez
Hey there people: Let's say that I have these models == class Post(models.Model): user = models.ForeignKey(User) category = models.ForeignKey(Categories) title = models.CharField(max_length=50) post = models.TextField() date = models.DateTimeField(auto_now_add=True) d

Re: using ORM Parent->child rendering inside a template

2009-10-27 Thread Juan Hernandez
On Tue, Oct 27, 2009 at 3:39 PM, Ramiro Morales wrote: > > Have you actually tried doing so? LOL!!! somehow I didn't do it correctly!! That's the way to do it! Thanx :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Is there a way to integrate php to a django app?

2009-11-13 Thread Juan Hernandez
Well, technically everything is possible and I think that the proper thing to ask would be "is it worth it"? On 11/13/09, Allen wrote: > Hi, all: > > I've build a application with django, and my friends build a part of > the application with php. > now both of us are finished, the final step is

even and odd numbers within a template

2009-11-24 Thread Juan Hernandez
Hey there people... I've been coloring html tables using javascript for a while and now, we need to color our tables just with html. The CSS has been made to use one color for even rows and another one for odds. How can I know if a current template loop is odd or even? I've been trying many differ

Re: Sick of defining urls

2009-12-03 Thread Juan Hernandez
c'mon! is regular expressions! if that bothers you, just do a regex that woud take anything and through a smart view, define everything On Thu, Dec 3, 2009 at 3:51 PM, Max Battcher wrote: > Todd Blanchard wrote: > > settings.py has a list of applications to include (INSTALLED_APPS). > > Fine.

Re: Looking for a Django Developer

2010-05-21 Thread Juan Hernandez
why don't we talk about our lives in this lists? PLEASE! Tis is a technical list... use djangogigs instead!!! On Fri, May 21, 2010 at 12:16 PM, Kashif Ali wrote: > Hi, > > I am interested. I am a python django developer working from last 2 year > almost for an American company devpond.co

Re: Can't access Django Dev Server.

2010-05-29 Thread Juan Hernandez
any firewall?? On Sat, May 29, 2010 at 8:03 PM, gin tonic wrote: > My development server is running but when I attempt to access it at > the localhost 127.0.0.1:8000 I receive a page not found error while my > command shell shows no attempt to access the site. > > No error messages. > No sign of

Re: Django IDE

2010-07-17 Thread Juan Hernandez
google: "django ide" :) On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai wrote: > find them, use them and you will know the best > > > On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi < > joshijitendra...@gmail.com> wrote: > >> What is the best open source Django IDE ? >> >> -- >> You received thi

request.is_ajax() good practices

2010-07-21 Thread Juan Hernandez
directly to the template. It works perfectly but somehow I thing that I'm violating DRY or at least, good practices What do you guys think? Thanks a lot Juan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Inserting a row with x_set or select_related

2010-08-13 Thread Juan Hernandez
Hey there, Let's say that I have these models: *from django.contrib.auth.models import User* * * *class Publisher:* *name = Char(x)* * * *class Author:* *publisher = FK(Publisher)* *name = Char(x)* * * *class Book:* *user = FK(User)* *author = FK(Author)* *name = Char(x)*

Re: Pylons vs. Django

2010-09-05 Thread Juan Hernandez
Well, just by using SQLAlchemy makes this framework worth a try On 9/5/10, Feross wrote: > Hey everyone, > > I'm a new Python user and I'm looking for a web development framework to > build a database-driven website. I've looked at the various Python web > frameworks out there and I've settled on

Re: Pylons vs. Django

2010-09-05 Thread Juan Hernandez
ow. You can do very complex data handling and exchange with a very stable persistence layer that will give you a lot of power This is a huge topic and those differences must be studied. Whether you want a fully capable web framework or if your data processing is very complex is up to you, your app a

Re: RV: photos sexy

2010-02-26 Thread Juan Hernandez
Lastima que esa no seas tu Gisela!! jajajaj slds desde vzla On Fri, Feb 26, 2010 at 12:40 PM, Gisela Cartaya wrote: > My apologize for all, this has been a big mistake error, this is a > technical mailing list I ask to the administrator to delete from archive > that email as soon as possible. >

Re: template system and subdirs

2008-06-08 Thread Juan Hernandez
sorry, I already found out. I thought that I was able to load static content off django and I was wrong here's the answer http://www.djangoproject.com/documentation/static_files/ On Mon, Jun 9, 2008 at 5:23 PM, vjanicek <[EMAIL PROTECTED]> wrote: > hey there people... > > I'm a long time python

Re: oracle-django problem

2008-06-09 Thread Juan Hernandez
why does it have to be that big?? what would be the problem of renaming the models?? On Tue, Jun 10, 2008 at 6:13 AM, Harish <[EMAIL PROTECTED]> wrote: > > hi friends > > i have a django application, which works on postgres as back-end. > now i want to migrate the application back-end from

Models and DB api

2008-06-10 Thread Juan Hernandez
the django shell, I'm able to see and do pretty much everything I want... like this (system is the name of the app inside my test proyect): --- >>> from system.models import Users as us >>> x = us.objects.all() >>> x.values() [{'name': 'Juan&#

Re: Total newbie question

2008-06-10 Thread Juan Hernandez
djangobook.com is a great place to start On Wed, Jun 11, 2008 at 11:33 AM, Gonzalo Delgado < [EMAIL PROTECTED]> wrote: > El Tue, 10 Jun 2008 08:46:14 -0700 (PDT) > Pedro Cora <[EMAIL PROTECTED]> escribió: > > > > > First of all, sorry if i'm making a question that should appear a lot > > here. >

Re: Models and DB api

2008-06-10 Thread Juan Hernandez
oohh, now I get it Thank you very much Daniel On Wed, Jun 11, 2008 at 2:28 PM, Daniel Roseman < [EMAIL PROTECTED]> wrote: > > On Jun 10, 5:14 pm, "Juan Hernandez" <[EMAIL PROTECTED]> wrote: > > Now, my question is: How do I treat all these values into a str

Re: Trouble Running Tutorial when running syncdb first time on Mac OS X

2008-06-10 Thread Juan Hernandez
sqlite3.OperationalError: unable to open database file <<-- here is the problem, check permissions On Wed, Jun 11, 2008 at 6:00 PM, jeff <[EMAIL PROTECTED]> wrote: > > I have been trying to get Django up and running on Mac OS X (10.5.3). > I did everything in the tutorial and successfully got the

DB Models best practice

2008-06-12 Thread Juan Hernandez
Hey there, I have a question concerning performance and best practices I have this piece of code in one of my views = # query execution def db(): return bp.objects.all() def title(): x = db() y = x[0].title return y def blogSubtitle(): return bp.objec

Re: SQLobject vs SQLAlchemy

2008-06-12 Thread Juan Hernandez
Well, you can use both anyway On Fri, Jun 13, 2008 at 10:03 PM, Pepsi330ml <[EMAIL PROTECTED]> wrote: > > In the Django Tutorial and Django Book, all the codes example was > using SQLObject. > > Is there a specific reason for using Django with SQLObject instead of > SQLAlchemy? > > > > --~--~---

Re: SQLobject vs SQLAlchemy

2008-06-12 Thread Juan Hernandez
> > one of the installation steps for Django is to install MySQLdb or > psycopgl. > These are sqlobject. No, they are not. Those are the "connectors" used by python to connecto to either MySQL or PostrgrSQL. You need them whether you use SQLObject, SQLAlchemy or just to access the DB --~--~

Re: Does django-driven Blog popular?

2008-06-12 Thread Juan Hernandez
I think that 99,9% of new framework programmers start with a blog :D It's a very easy yet powerful way to understand a framework jhv On Fri, Jun 13, 2008 at 11:32 PM, kylin <[EMAIL PROTECTED]> wrote: > > Thanks > I am looking forward to finding some samples to study.Could you give > me any advi

Dictionaries, templates and best practices

2008-06-17 Thread Juan Hernandez
Hey there I've been practicing for a while with the template system and I have some questions: Lets say that I create this dictionary: test = dict() test[0] = {'title': 'My First Title', 'post': 'My First Post'} test[1] = {'title': 'My Second Title', 'post': 'My Second Post'} etc... til 10 for e

Re: Dictionaries, templates and best practices

2008-06-17 Thread Juan Hernandez
x27;t you replace 'post.0.title' > and 'post.0.post' with 'x.title' and 'x.post', respectively? > > On Jun 17, 1:50 pm, "Juan Hernandez" <[EMAIL PROTECTED]> wrote: > > Hey there > > > > I've been practicing for

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-19 Thread Juan Hernandez
me 2 :D On Fri, Jun 20, 2008 at 10:42 PM, k0001 <[EMAIL PROTECTED]> wrote: > > Can I jump into the "THANKS" bandwagon? > > Thanks. =) > > On Thu, Jun 19, 2008 at 11:41 PM, Gene Campbell <[EMAIL PROTECTED]> > wrote: > > > > Just wanted to "THANKS" for an absolutely awesome web dev

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread Juan Hernandez
what is the best way to contribute to the project?? It's karma! you have to return somehow what you get :) On Sat, Jun 21, 2008 at 10:18 AM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Django just rocks, thanks. > > It has, > taught me some advanced Python > made me money on consulting gigs

Re: الى من يريد مشاركتي معي في الموقع

2008-07-01 Thread Juan Hernandez
im my lil' town this is called SPM :D 2008/7/2 bhunter <[EMAIL PROTECTED]>: > > > On Jul 1, 8:30 pm, GLOBAL705 <[EMAIL PROTECTED]> wrote: > > السلام عليكم > > اما بعد اريد ان الفت انتباهكم الى انة مجموعة كلوبال705 افتتحة موقع من > > محرك

User missing after login

2012-03-07 Thread Juan Carlos
Hello everybody! I am try to add registration in my django site., I am using django.contrib.auth.views.login via django-registration and I have set the next="/home_page/" param in the login form. The view asociated to / home_page/ is excuted, its return looks like this: return render_to_response(

I can't activate the admin site

2011-10-30 Thread Juan Kepler
I've done what the "Writing your first Django app, part 1" said. It works. But in the part 2: *I add "django.contrib.admin" to my INSTALLED_APPS setting. *I run python manage.py syncdb. And I have this error: "File "...Python26\lib\site-packages\django\contrib\admin\sites.py", line 250 ret

Re: I can't activate the admin site

2011-10-31 Thread Juan Kepler
Thank you all. I'm using Django 1.3 I may need to rewrite the file sites.py I'm sure I did not change anything in that file. -- 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 u

Re: UML to Django - online generation service

2011-05-07 Thread Juan Hernandez
django-extensions does something similar On Sat, May 7, 2011 at 3:04 AM, gusheng wrote: > I'm thinking of something opposite.. > > Is it possible to draw uml base on my models? > > or, how to draw or present my model-structure-data.. > > > On May 4, 10:26 pm, jcabot wrote: > > Hi everybody, > >

VPython and Django

2011-02-10 Thread Juan Kepler
How I can incorporate in a web a 3D image made with VPython using Django? -- 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-u

ImportError cannot import name

2014-10-22 Thread Juan Carlos
pes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'exsite.example', ) If I comment (#) the last line, the bug dissapears. ¿What can I do? I have Django 1.7 with Python 2.7. Thanks for your attentio

ImportError failure

2014-10-22 Thread Juan Carlos
', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'exsite.example', ) What can I do? My django version is 1.7, with Python 2.7. I'm new in this interesting world of Dja

Re: ImportError failure

2014-10-22 Thread Juan Carlos
Hi Serdar, Sure, you're right. Thanks, thank you very much! Regards, Juan El miércoles, 22 de octubre de 2014 06:53:06 UTC-5, Serdar Dalgic escribió: > > Hi Juan, > > I believe you might have a problem while importing "example". Can you > check the line you'

Re: __unicode__() addition not working in basic poll application.

2014-01-10 Thread Juan Hu
I have same problem with Django 1.6.1 and Python 2.7.5. I tried to restart interactive interpreter by exit() but it still doesn't work :( Following the tutorial, for Python3 we use _str_ but I am using Python 2.7.5 so I use _unicode_. Can anyone help to point out the problem and solution? Thanks!

Re: __unicode__() addition not working in basic poll application.

2014-01-11 Thread Juan Hu
No, just single underscore On Saturday, 11 January 2014 06:25:20 UTC-8, trojactory wrote: > > Juan, > > Are you entering double underscores like '__unicode__'? > > Cheers, > Arun > > On Saturday, January 11, 2014 5:14:01 AM UTC+5:30, Juan Hu wrote: >> &

Re: __unicode__() addition not working in basic poll application.

2014-01-11 Thread Juan Hu
As I mentioned, I tried this but it doesn't work for me. Is this the python unicode problem? I tried unicode(Poll.objects.all()) and it returns the same On Saturday, 11 January 2014 12:38:16 UTC-8, Kai Ren wrote: > > Just type exit() > then re-enter the shell, it will work. > > On Monday, May 16,

Re: Download a file on Django and delete it after return

2017-11-14 Thread Juan Hernandez
well, we could see the use case to see the correct approach but, what comes to mind is using try/except/finally On Nov 14, 2017 17:56, "Ruifeng Hu" wrote: > Hi All, > > I am now writing a web service which can generate a file and download it > automatically for users, but I want to delete it aft

Postgis Raster Query API Spatial Look up. Intersects problem

2016-07-04 Thread Juan Escamilla
0\000\000\000\;@\000\000\000\000\000@[\300\000\000\000\000\;@\000\000\000\000\000@[\300\000\000\000\000\000\000;@'::bytea)) where: demmex120 is the name of the table. The substring in yellow : ST_Polygon("demmex120"."rast" is the problem. If I run the raw

Re: Friends i can not run python manage.py migrate on Django 1.6.1. Can you give me advice plz?

2016-07-04 Thread Juan Escamilla
As Dvschramm said the migrate command was iimplemented until 1.7 . You can try to pip upgrade django to a suitable version: pip install 'django>1.6 ,<1.7' more on: http://stackoverflow.com/questions/5226311/installing-specific-package-versions-with-pip El lunes, 4 de julio de 2016, 18:04:28

Integrating the Werkzeug web based debugger with Django - A lightweight management command

2017-04-07 Thread Juan Saavedra
Hello, We created a small management command to run a tweaked version of the Werkzeug dev server and debugger in Django. A small intro and description is available at https://www.octobot.io/blog/django-rundbg-release/ It is particularly useful for debugging REST APIs, but not exclusively. PRs

Model security error in shell

2020-08-07 Thread Juan D.
Hi. This is something that only occurs in the shell environment, not in the web. If I have this model: class Phone_App(models.Model): phone= models.ForeignKey(Phone, on_delete=models.CASCADE) app_name = models.ForeignKey(App, on_delete=models.CASCADE) downloads = models.IntegerField(d

Security issue in django.db.models

2020-08-07 Thread Juan D.
I've created a model with null and blank set to False in robot_name: class Robot(models.Model): robot_name = models.CharField(max_length=200, null=False, blank=False) version = models.CharField(max_length=20, blank=True, null=True) class Meta: unique_together = ('robot_name',

Re: Security issue in django.db.models

2020-08-10 Thread Juan Díaz
ed, >> whereas blank is validation-related. If a field has blank=True, *form >> validation* will allow entry of an empty value. If a field has >> blank=False, the field will be required. >> """ >> >> So that is only caught when doing form validation, not when

django -mysql

2021-02-01 Thread Juan Quiroz
Trato de usar el pip3 install mysqlclient y me genera este error. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: NoReverseMatch:

2010-01-17 Thread Juan Pedro Fisanotti
ls >> > > here:http://docs.djangoproject.com/en/1.1/topics/http/urls/#topics-http-urls- >> > > Hide quoted text - >> >> - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

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: 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: 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: 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: 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: How to translate Lookup values in Django?

2012-10-03 Thread Juan Pablo Martínez
Then you could come here and test if it's https://github.com/juanpex/django-model-i18n/ Regards, On Tue, Oct 2, 2012 at 10:08 PM, Houman wrote: > Thanks Juan. > > Well that is certainly possible. But then we have also some other lookups > like the country, which is a lookup

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

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

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

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

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: 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: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Juan Francisco Roco
Hello, I had this issue too, I found the solution in a stackoverflow (sorry I dont' have the URL) Basically what you have to do after syncdb is: $ ./manage.py migrate $ ./manage.py convert_to_south app I've got this error: don't worry is part of the procedure :) CommandError: One or more mod

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Juan Francisco Roco
Sorry, double post I don't see my answer published: I found this in stackoverflow: After syncdb: $ ./manage.py migrate $ ./manage.py convert_to_south app You will got: CommandError: One or more models did not validate: auth.user: Model has been swapped out for 'app.MyUser' which has not been

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

Login in all pages

2015-02-05 Thread Juan Diego Gonzalez
Hi, I need to put the django login feature in all pages, I mean, the user will be able to login in the reserved area of the web from any public page. I have all the implementation done, and it works with a single page, in this way: url(r'^home/$', magic.views.login, {'template_name':'magic/index

Tastypie with Django and MongoDB. How to query subdocuments

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

Re: 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

Re: Form wizard get_template_names()

2014-04-23 Thread Juan Miguel Taboada
On Wednesday, July 13, 2011 4:31:58 AM UTC+2, Dario Vergara wrote: > > Here is the solution: > > def get_template_names(self): > next_step = int(self.steps.current) > return 'step_%s.html' % next_step > > > Simple solution. What is confusing is that the documentation says

Is it possible to get working django transaction with django multiple databases

2014-06-16 Thread Juan Jose Huelga
Hi there. I'm trying to get a django site working with multiple databases, it means a DB1 for django site an another existing DB2 (say a legacy BD) but I need transactions enabled. I need to run queries over BD2 that depends on queries over DB1 and the other way around. If any of these queries fail

is there any way to set a default formating for float/decimal numbers like default formats for date/datetime values?

2014-07-01 Thread Juan Jose Huelga
I would like to set a float or decimal format like those set in django.conf.locale.en.formats, for example a default format that floatformat template filter could use to format my numbers by default without decimal places. Something like settings.USE_THOUSAND_SEPARATOR that django use by defaul

  1   2   >