Re: INSTALACION PYTHON / DJANGO EN DEBIAN

2022-07-10 Thread Miguel Ángel Cumpa Ascuña
Hi sudo apt install python3-pip sudo pip3 install --upgrade pip sudo pip install django El sáb, 9 jul 2022 a las 12:44, GLIBERT CERTAD () escribió: > Estimados, buenas tardes. Hasta ahora he trabajado con Python y Django en > Sistema Operativo de Windows. Pero por razones labrales, he iniciado un

Re: Conectarme a un AS/400 desde Django

2021-01-28 Thread Miguel Ángel Cumpa Ascuña
me parece rara esta línea "AS400 = {" creo que debería ser "DATABASES = {" Pues estimo que estás usando esta librería https://github.com/ibmdb/python-ibmdb-django Revisa el README, ahí esta un ejemplo. El jue, 28 ene 2021 a las 18:32, Gabriel Araya Garcia (< gabrielaraya2...@gmail.com>) escribió:

Re: Conectarme a un AS/400 desde Django

2021-01-27 Thread Miguel Ángel Cumpa Ascuña
Hola, no puedes acceder a un archivo o no puedes acceder a una tabla en DB2 /400 de tu AS/400? El mié, 27 ene 2021 a las 12:20, EDWARD A. LUGO A. () escribió: > Buenos días, soy nuevo en Django y no he podido conectarme a un archivo > que tengo dentro de un AS/4

Re: Problem in fetching the name from database

2020-02-06 Thread Miguel Braga
can you give some more context? how are you fetching the data? On Sun, 12 Jan 2020 at 13:09, Aadarsh Bajpai wrote: > Hello , >I am facing problem in fetching the name from database such > that whenever i try to fetch the column from the database it comes in the > form of tuple as out

Re: Hosting para demostración

2019-08-09 Thread Miguel Ángel Cumpa Ascuña
Hola Gabriel, quizá este tutorial te pueda ayudar https://help.pythonanywhere.com/pages/DeployExistingDjangoProject/ Saludos El vie., 9 ago. 2019 a las 12:57, Gabriel Araya Garcia (< gabrielaraya2...@gmail.com>) escribió: > ¿Donde y como subir mi proyecto básico en calidad de demostracion?. Es mu

Re: Migraciones con dos aplicaciones en un proyecto de Django

2019-06-27 Thread Miguel Ángel Cumpa Ascuña
hola, el procedimiento debería ser el mismo, python manage.py makemigrations python manage.py migrate éxitos! El jue., 27 jun. 2019 a las 13:56, Tatiana Mesa () escribió: > Hola a todos, > > Me gustaría saber si al momento de hacer una migración (migrate), con dos > aplicaciones en un proyecto ca

Re: REST Framework alternatives

2019-02-05 Thread Miguel Ángel Cumpa Ascuña
Django tastypie good luck! https://django-tastypie.readthedocs.io/en/latest/toc.html El mar., 5 feb. 2019 a las 11:52, Victor Porton () escribió: > My buddy says that REST Framework is complex and inflexible. > > So the question: Any other framework which supports validating JSON data? > > -- > Y

Manage static files using Jinja2

2018-12-10 Thread miguel . yurivilca
I am using the documentation to learn Django. When I started creating static files, I started to get problems. I am using this: https://docs.djangoproject.com/en/2.1/howto/static-files/ but I think it is using Django template engine. How can I fix this problem? Does every static file needs a ur

Re: Multiple DB - Accessing another app's table/model?

2017-07-20 Thread miguel vfx
ery it. > > from appB.models import Table > Table.objects.all() > > > On Tue, Jul 18, 2017 at 6:01 PM, miguel vfx > wrote: > >> Hello, >> >> After following through the documentation, I was able to query data from >> another database. However, I was

Multiple DB - Accessing another app's table/model?

2017-07-18 Thread miguel vfx
Hello, After following through the documentation, I was able to query data from another database. However, I was only able to access the table of the same app name. How can I query data from a different app name? For example: appA has a model client_data. It's table name in the app_db database

Django, permission error saving on disk, why?

2017-07-04 Thread miguel vfx
Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a workbook on disk using openpyxl: wb.save(path) No file is uploaded. It's a request then the file is generated and delivered (downloaded), and that part works fine. What I'm trying to do is save a copy of that file on dis

Accessing DB on another Server/Project/App

2017-05-24 Thread miguel vfx
Hello, I would like to know what its called and if there are resources available in the web. A walkthrough tutorial would be a gem at my current skill set. I would like to access data from another server, from another project and from another app. Read access would be sufficient. Thank you for

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
> > url(r'^class_lists_summary/(?P[-\w]+)/$', > rrs_views.requires_login(rrs_views.class_lists_faculty), > name="rrs_class_lists_summary"), > Does this make any sense? I would like to use the first one since it's much cleaner. On Monday, May 8, 2017 at 5:53:54

NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
Hi, It used to work but after my recent upload, it stopped. Does anyone encountered this kind of error before? It's working fine in my local machine using runserver but not in the production server. I'm basically drag and dropping files. Then renaming the > os.environ.setdefault('DJANGO_SETTI

Can you post/submit to the same view named in urls.conf?

2017-04-11 Thread miguel vfx
> url(r'^register/(?P[-\w]+)/$', rrs_views.rrs_register_student, > name="rrs_register_student"), > def rrs_register_student(request, student_id='', section=''): Good day, I suspect that I'm doing something wrong here. What I wanted to achieve is... - When the page is loaded, it will

Login/Logout, single instance only

2017-04-03 Thread miguel vfx
Good day! I was wondering if there's a way to limit a user account to be logged-in in just 1 single device? I mean is there a way to logout a user first (In all browsers), then login? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Import Error Running script to populate database using models

2016-09-20 Thread miguel vfx
Good day, I'm getting import errors when I try to run a script to populate a database using models. I'm new to django so it means I haven't done anything special than follow djangobook and other beginner tutorials. The script I would like to run is in the same folder as the models.py. I figure

Problems changing django version of docs with non engligh languages

2016-04-22 Thread Miguel Coronado
Hi there, I recently found that documentation of django 1.9 is available in Spanish (es). However, when "es" is selected, I don't have the option to select the documentation for version 1.8 (which is not available in that language) To do so I have to first switch to "en" and then to 1.8. It i

The best approach for a customer restricted area

2016-01-22 Thread Miguel Pragier
restricted area, with ther own authentication system. How should I create this "customer area"? Admin? Some plugin/add-on? Coding from scratch? Or am I looking to the wrong direction? Thank you very much. Miguel -- You received this message because you are subscribed to the Google Gro

Re: Having trouble understanding Timezone

2016-01-07 Thread Juan Miguel Paredes
On Wed, Jan 6, 2016 at 11:06 PM, Ryan Causey wrote: > 1. The documentation says that when USE_TZ = True that "Django stores > datetime information in UTC in the database, uses time-zone-aware datetime > objects internally, and translates them to the end user’s time zone in > templates and forms."

Re: Multiple serializers

2015-12-11 Thread miguel angel lopez mendo
any ? El jueves, 10 de diciembre de 2015, 12:27:26 (UTC-6), miguel angel lopez mendo escribió: > > i have this serializers > > class ValuarCoche(serializers.ModelSerializer): > class Meta: > model = Valuacion > depth = 6 > fields = ('coche','P

Multiple serializers

2015-12-10 Thread miguel angel lopez mendo
i have this serializers class ValuarCoche(serializers.ModelSerializer): class Meta: model = Valuacion depth = 6 fields = ('coche','Precio_Venta','Precio_Compra') class CocheSerializer2(serializers.ModelSerializer): valuacion = ValuarCoche(many=True) class Meta: model = Coche fields = (

Re: Como puedo regresar el ultimo elemento de mi base de datos

2015-11-20 Thread miguel angel lopez mendo
otro (no oficial) en: > https://groups.google.com/ foro / #! foro / django-es > <https://groups.google.com/forum/#!forum/django-es> > > También por favor, utilice dpaste servicios o similar para el código. > > Saludos, > > El viernes, 20 de noviembre de 2015, 17:19:55

Como puedo regresar el ultimo elemento de mi base de datos

2015-11-20 Thread miguel angel lopez mendo
--mi view Usados ​​def (solicitud): productos = Coche.objects.filter (tipo = '1') productos / usados.html '= plantilla volver render (solicitud, plantilla, locals ()) template--- {% Extends% 'base.html'} {Carga% staticfiles%} {% Block%} head_title {%}% Endblock

Re: problema con un select

2015-11-12 Thread miguel angel lopez mendo
max_length=12, choices=Periodo_CHOICES) slug2 = models.SlugField(unique=True) def __unicode__(self): return self.Nombre class Meta: unique_together = ('correo', 'slug2') def get_absolute_url2(self): return reverse("Single

Re: problema con un select

2015-11-12 Thread miguel angel lopez mendo
No me queda .. El miércoles, 11 de noviembre de 2015, 13:34:13 (UTC-6), alan.avalosh escribió: > > En el método del view, no estás regresando la colección de objetos tipo > Medio. > > Sent from my iPhone > > On Nov 11, 2015, at 12:19 PM, miguel angel

problema con un select

2015-11-11 Thread miguel angel lopez mendo
view def medios(request): medios = Medio.objects.filter() template = 'products/Clientes.html' print medios return render(request, template, locals()) model- class Medio (models.Model): nombre_medio = models.Char

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
de lo que has buscado. > > Eso es algo differente en comparacion de lo que ya tuviste cuando > pasaste el `Clientes` objeto dentro el template. > > On 10.11.2015 17:46, miguel angel lopez mendo wrote: > > ya lo acomode pero aun asi me manda este error > > < > ht

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
`import > string`. My email > client kinda borked my indentation, so you need to take care. > > On 2015-11-10 17:30, miguel angel lopez mendo wrote: > > < > https://lh3.googleusercontent.com/-y6iDerxsJQM/VkIbpx5j19I/Agw/OYdyYTRJgME/s1600/Captura%2Bde%2Bpantalla%2B2

Re: simplify query

2015-11-10 Thread miguel angel lopez mendo
> objects.append(Clientes.objects.filter(**filters).order_by(order) > ``` > > Hope that helps, > Luke > > On 2015-11-10 17:06, miguel angel lopez mendo wrote: > > a = Clientes.objects.filter( Nombre__startswith='A').order_by('Nombre') > >

simplify query

2015-11-10 Thread miguel angel lopez mendo
a = Clientes.objects.filter( Nombre__startswith='A').order_by('Nombre') b = Clientes.objects.filter( Nombre__startswith='B').order_by('Nombre') c = Clientes.objects.filter( Nombre__startswith='C').order_by('Nombre') d = Clientes.objects.filter( Nombre__startswith='D').order_by('Nombre') e = Cl

Re: Ayuda con filtro

2015-11-09 Thread miguel angel lopez mendo
{% for cliente in queries %} Nombre del Cliente: {{ cliente.Nombre}} Medio por el cual llego: {{ cliente.get_medio_display}} {% endfor %} En el template que modificaria ? El lunes, 9 de noviembre de 2015, 11:36:29 (UTC-6), miguel angel lopez mendo escribió: > > > def cliente

Re: Ayuda con filtro

2015-11-09 Thread miguel angel lopez mendo
Soy nuevo en este tema y no me queda lo deje como lo subiste El lunes, 9 de noviembre de 2015, 11:36:29 (UTC-6), miguel angel lopez mendo escribió: > > > def clientes(request): > clientes = Clientes.objects.order_by('Nombre') > clientes2 = Clientes.objects.order_

Ayuda con filtro

2015-11-09 Thread miguel angel lopez mendo
def clientes(request): clientes = Clientes.objects.order_by('Nombre') clientes2 = Clientes.objects.order_by('Nombre').filter(medio='1') clientes3 = Clientes.objects.order_by('Nombre').filter(medio='2') clientes4 = Clientes.objects.order_by('Nombre').filter(medio='3') c = Client

Two Things: (1)-ModelChoiceField with a searchbox and (2)-Related Dropboxes

2015-07-13 Thread Miguel Pereira Legal
I have this two questions: I am trying to write a small stock management system, and I am finding problems in the Form. See, when an item goes out I have a dropbox (ChoiceField) to choose the item that is going out, but this dropbox gets too long when you have so many elements in the data base

Access to custom fields in view?

2014-07-30 Thread Miguel Angel Yáñez Camacho
istinct().order_by( '-plantilla__inserted_date') s = set(plantillas_db) for i in s: print(i.id) print(i.responsive) print(i.engine) How can i access to this fields? thanks Miguel -- You received this message

Re: How to install psycopg2 using Pip?

2014-06-03 Thread Adrian Miguel
Where can I find the setup.cfg file on a mac? On Monday, July 23, 2012 3:18:02 PM UTC-4, Mehrdad Majzoobi wrote: > > Ok, I realized what the issue was. In the setup.cfg file, the pg_config > path had to include the pg_config executable name as well: > > pg_config = /usr/pgsql-9.1/bin/pg_config >

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

application warmup

2013-03-15 Thread Miguel Angel Yáñez
Hi I have various apps running on apache fine but I noticed that when time passes without requests the first request after always fail, the following already going well. I read that you have to simulate a warmup for the application but I do not see how to do this. Any idea how to solve this prob

URL disâtching

2012-10-08 Thread Miguel Blauwbloeme
I am new to django and have problems with url dispatching. I have a webpage (a global one) which gives an overview of some fields in a mongodb (using pymongo). Some of those fields are name, first name, address, country. I want to set a href on name to show the details of that person. I want to

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Miguel Lavalle
116:8000/myapp/>/page/ where page is what I am trying to access Regards Miguel On Friday, July 27, 2012 8:29:07 AM UTC-5, Christopher Downard wrote: > > Try python manage.py runserver 192.168.1.116 where that address is your > computer's address. > On Jul 27, 2012 7:15 AM

Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-27 Thread Miguel Lavalle
Hi, I am new to Django. I am developing my first app on a Windows 7 laptop. I want other people to be able to connect to this app. As indicated in the documentation, I start the server with: python manage.py runserver 0.0.0.0:8000 And then I try to access my app from another laptop pointing th

Installing Django @ Shared Host

2012-06-21 Thread Miguel Guirao
Hi all, I have a hosting service from ApolloHosting.com. I don't have SSH access neither unsecure telnet to my account. I can FTP into my account. I have Python 2.5. I'm under Linux. Is there a way I could install django under these circunstances?? Best Regards, Miguel Guira

Re: Possible bug in model validation

2011-02-03 Thread Miguel Araujo
Las try or I will report it as a bug as I think it is. 2011/1/28 Miguel Araujo > Well, > > I'm just trying to figure out if this should be reported. > > Thanks, regards > > > Miguel Araujo > @maraujop > > 2011/1/22 Miguel Araujo > > Hi

Re: weird behavior in select_related

2011-01-30 Thread Miguel Araujo
I didn't know that, that's why it was happening. I didn't post my models, as I wasn't sure that would help. Thanks for your help Daniel, Miguel Araujo @maraujop 2011/1/28 Daniel Roseman > On Saturday, January 22, 2011 1:38:22 PM UTC, maraujop wrote: >> >

Re: weird behavior in select_related

2011-01-28 Thread Miguel Araujo
Hi, Please anyone confirm if this is normal, so I can report it or not. Thanks, regards Miguel Araujo @maraujop 2011/1/22 Miguel Araujo > Hi everyone, > > I have been working on reducing DB queries in my project with great > results. But I have realized that select_related

Re: Possible bug in model validation

2011-01-28 Thread Miguel Araujo
Well, I'm just trying to figure out if this should be reported. Thanks, regards Miguel Araujo @maraujop 2011/1/22 Miguel Araujo > Hi everyone, > > I have a model A that has a overwritten save method that updates a model > B's field. Both (A & B) have model v

Possible bug in model validation

2011-01-22 Thread Miguel Araujo
is way. Thanks, best regards Miguel Araujo @maraujop -- 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+unsubsc

weird behavior in select_related

2011-01-22 Thread Miguel Araujo
neToOneFields point models that reference back to model pointing at them, for performance reasons. I reckon this can be a bug. Thanks, best regards Miguel Araujo @maraujop -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: How do I filter/exclude custom queryset fields created by .extra()?

2010-10-29 Thread Miguel Araujo
dgets = ForeignKey(Widget, null=True) Regards, Miguel Araujo 2010/10/29 Jumpfroggy > From a raw SQL standpoint, I've figured out that these constraints > need to be in the HAVING clause, not the WHERE clause. But it looks > like HAVING is not exposed through the .extra() function,

Today I released my first Django-app

2010-10-29 Thread Miguel Araujo
'm sending this notice here, so you get to know about it. Project's website is: http://github.com/maraujop/django-rules Best regards, Miguel Araujo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Forms in a Workflow for Related Models

2010-10-29 Thread Miguel Araujo
the second form, empty or loaded. This is the usual HTML web application flow, not related to Django. If you want things to happen dynamically, you will have to use AJAX, you can use any JS library you like. Best regards, Miguel 2010/10/29 ghachey > Hi, > > I think I have a partic

Re: Model Inheritance.

2010-10-29 Thread Miguel Araujo
Hi Tom, You might want to have a look at inheritanceCastModel from django-model-utils by Carl Meyer http://github.com/carljm/django-model-utils Best regards, Miguel Araujo 2010/10/29 David De La Harpe Golden > On 29/10/10 00:04, Tom Eastman wrote: > > That's correct, but I

Re: possible bug in joining on a geo field

2010-10-25 Thread Miguel Araujo
Should I report it? who should I contact? Anyone can confirm this is a bug? 2010/10/23 Miguel Araujo > Thanks Karen, you are right. But I missed the underscore for sending this, > although I was trying here with double underscore: > > So If I do it right: > > I

Re: inheriting User class

2010-10-25 Thread Miguel Araujo
queries become more obscure and less elegant if I need to access User though my Profile `userprofile__user__username__exact` If there is no better option, I will try to wrap everything in some helpers, Regards, Miguel Araujo 2010/10/25 Rob > Probably most of us are using the separate

Re: Users table

2010-10-24 Thread Miguel Araujo
rnostrum/django-registration/ Regards, Miguel Araujo 2010/10/24 miksayer > Hello! I'm newbie in Django. And I have few questions. For learning > Django I decided to develop simple todo-service(where you can note > your current deals). > I started new project "todo" and im

Re: inheriting User class

2010-10-24 Thread Miguel Araujo
¿no one knows anything about this? Thanks, regards Miguel Araujo 2010/10/22 Miguel Araujo > Hello everyone, > > I'm not very aware about what's the direction Django is taking about the > User model and making it swappable. Meanwhile I would like to ask if > inh

Re: possible bug in joining on a geo field

2010-10-23 Thread Miguel Araujo
u misspell 'distance' for the lookup type? So it's still not working. Regards, Miguel Araujo 2010/10/23 Karen Tracey > On Sat, Oct 23, 2010 at 1:07 PM, Miguel Araujo wrote: > >> Item.objects.filter(location__point__distance_lte = (point, D(km=10))) >> >

possible bug in joining on a geo field

2010-10-23 Thread Miguel Araujo
t, D(km=10))) And I'm getting: FieldError: Join on field 'point' not permitted. Did you misspell 'distance_lte' for the lookup type? is this a bug? should I report it in a ticket? am I doing anything wrong? Thanks, regards Miguel Araujo -- You received this message becau

inheriting User class

2010-10-22 Thread Miguel Araujo
tion. I'm using now an AUTH_PROFILE_MODULE at the moment, but I don't realy like this approach, as it makes my class hierarchy more complicated. Thanks, best regards Miguel Araujo -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: dump sqlite to file when testing

2010-10-21 Thread Miguel Araujo
Thanks Russ, I couldn't find it in the documentation, IMHO I think it's a little bit hidden. Best regards, Miguel Araujo 2010/10/21 Russell Keith-Magee > On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo > wrote: > > Hi everyone, > > Is there any way to force sqli

dump sqlite to file when testing

2010-10-20 Thread Miguel Araujo
Hi everyone, Is there any way to force sqlite3 to use a file instead of RAM when running tests? I would like to access the DB somehow to check some fields. This is the only DB engine I have in this machine. Thanks, Best regards Miguel Araujo -- You received this message because you are

Re: trying to get a cache per request

2010-10-10 Thread Miguel Araujo
Thanks again Doug, I understand your method. I think the problem is that it might be too much overhead for what I can gain using a cache, so I might drop the idea of adding one. In any case, your explanation will be probably worth in future projects :) Regards, Miguel 2010/10/10 Doug > L

Re: trying to get a cache per request

2010-10-09 Thread Miguel Araujo
s only per request, if that is possible. Thanks, regards Miguel 2010/10/9 Doug > Why not just stick it on the request object? > > def myview(request): >request.mycache=MyCacheClass() > > then it's available everywhere the request object is. If you are > wanting some

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Thanks, I already got that :) I misunderstood the license, regards Miguel Araujo 2010/9/30 Steve Holden > On 9/30/2010 1:55 PM, Miguel Araujo wrote: > > Hi Michael, > > > > I have been looking at your project, django.extauth and I have to say I > > really like its

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Sorry, I misunderstood it. Then everything looks great 2010/9/30 mhall119 > The license is a 3-clause BSD style license, it's compatible with > Django's license as far as I know. > > On Sep 30, 1:55 pm, Miguel Araujo wrote: > > Hi Michael, > > >

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
stall it and see if I can help you with anything. Only thing that cached my eye is that code is Copyrighted. Why not using an Open-source license? Thanks for your mail, regards Miguel Araujo 2010/9/30 mhall119 > I've recently open-sourced some code that I developed for my work > proj

Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
7;ve come up with). Once it has the right object, it passes it to the backend for permission checks. I know I could do a decorator like @own_article but I'm looking for a more reusable solution, that I would make open source and release at Github. What do you think? Is it feasible and

Re: google projection GeoDjango question

2010-08-27 Thread Miguel Araujo
After 3 days trying to solve this, I found that geopy returns latitude/longitude and GEOS expects coordinates in reversed order. This fixes my issue with the maps. Thanks though, Miguel Araujo 2010/8/27 maraujop > Hi everyone, > > I'm new to GeoDjango. After installing it and t

Re: django + serving static CSS

2010-07-23 Thread Miguel Rodriguez
Hi Thomas, as you can see in django docs (http:// docs.djangoproject.com/en/dev/ref/settings/#setting-MEDIA_URL) MEDIA_URL --> it's just the url where your media (static content) resides. it can be a complete url (http://) or a reference to your current domain (/media/) So in the templates

Re: Two django devlopments under same apache config

2009-08-03 Thread Miguel
thank you graham! Miguel Sent from Madrid, Spain On Mon, Aug 3, 2009 at 1:07 PM, Graham Dumpleton wrote: > > > > On Aug 3, 8:56 pm, Miguel wrote: > > Hi all, > > > > I would like to configure two django sites using the same apache. One > > running on 80

Two django devlopments under same apache config

2009-08-03 Thread Miguel
the first configuration. does anybody have any ideas? Miguel Sent from Madrid, Spain --~--~-~--~~~---~--~~ 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

Re: 'list' object has no attribute '_clone'

2009-07-07 Thread Miguel
ummm, i can concat several queries with & and |. Doing this I play with queries instead of playing with list ... and then the object_list work properly. problem resolve. Miguel On Tue, Jul 7, 2009 at 1:38 PM, Miguel wrote: > Hello,I am trying to return an object_list to one of my te

Re: changing apache mod python

2009-07-07 Thread Miguel
Thank you Aaron. I will try to follow your pieces of advices. Fortunately it is not my production enviroment. Miguel On Thu, Jul 2, 2009 at 12:47 AM, Aaron Maxwell wrote: > > Hm. It involves this module Deportista. I haven't heard of it, so I'm > assuming it's eith

'list' object has no attribute '_clone'

2009-07-07 Thread Miguel
ntrenador/supervision/deportistas/ Exception Type: AttributeError Exception Value: 'list' object has no attribute '_clone' [..] Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

Re: postgres schemas and django admin

2009-07-01 Thread Miguel Rodriguez
and you have 'django.contrib.admin' under INSTALLED_APPS, right? On Jul 1, 6:58 am, Unnamed_Hero wrote: > > this only fails for admin? are the models being written to the database? > > Yes, it is. > I have a database already filled with data. For fetching data I > specify a class Meta with a db

Re: Internationalization in django and search engine indexing

2009-07-01 Thread Miguel Rodriguez
cool. Glad to hear it solved your problem. On Jun 30, 12:07 pm, Olivier wrote: > I've integrated it and it seems to work fine. > If people are interested in an example of localeurl, you can > checkwww.spiderchallenge.com(just switch language at the bottom of the > sidebar) > We will see if goog

changing apache mod python

2009-06-29 Thread Miguel
x27; PathInfo: '/' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' At the end, it says I have an error importing a module. does anybody know how to go back to the 2.5 python module? or how can I resolve this problem? thank you very much, best reg

Re: Internationalization in django and search engine indexing

2009-06-24 Thread Miguel Rodriguez
You should have a look at: http://code.google.com/p/django-localeurl/ I'm using it on my site and works really well and it's really easy to set up. You can check an example of how your urls will look once is implemented in here: http:\\jaratech.com Cheers, Miguel On Jun 23, 2:42 p

ViewDoesNotExist error on Apache2 with mod_wsgi

2009-05-21 Thread Miguel Martins
nt specifically requires that the application runs on Apache2 (and other web servers later on, but for now I just need to worry about Apache2). httpd.conf: LoadModule rewrite_module libexec/mod_rewrite.so LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /home/miguel/Blog/apache/django.ws

Re: if number <= othernumber

2009-05-13 Thread Miguel
ahm, you mean in the templates... I couldn't know how to do it. Usually I implement the comparison in the view and implement the if equal in the template. Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 2:49 PM, richardcur...@googlemail.com < richardcur...@googlemail.com> wro

Re: if number <= othernumber

2009-05-13 Thread Miguel
sure, you can. I am using 0.96 version. Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 2:33 PM, richardcur...@googlemail.com < richardcur...@googlemail.com> wrote: > > Can I do in Django 0.9 something like if number &l

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
the problem I have is that the fields are dynamic so I can not do any model from a form django object... Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 1:27 PM, Miguel wrote: > ignorance, I guess. Django is a really huge framework and I am new using > it.:-s > > Wher

Re: Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
ignorance, I guess. Django is a really huge framework and I am new using it.:-s Where can I find documentation about how python handle this? Miguel Sent from Madrid, Spain On Wed, May 13, 2009 at 1:24 PM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On May 13, 11:5

Form errors manipulation - autofill values in case of error

2009-05-13 Thread Miguel
but, I want to fill the values the user has already filled. I have these variables names and values in the context but how can I replace them if the html inputs are dynamic names? could anybody help me with these? I am a little lost. Thank you in advance, Miguel Sent from Madrid, Spain

Re: refill fields of a form in case of error

2009-05-12 Thread Miguel
in case of errors in the form, in which objects are sent back the fields which are already filled? Miguel Sent from Madrid, Spain On Tue, May 12, 2009 at 1:17 PM, Miguel wrote: > > > > if request.POST: > new_data = request.POST.copy() > datos =

Re: refill fields of a form in case of error

2009-05-12 Thread Miguel
'msg_error': msg_error, 'accion':accion, 'intensidades': Evaluacion_usuario.OPCIONES_INTENSIDAD, }, context_instance=Re

refill fields of a form in case of error

2009-05-12 Thread Miguel
x27;t find it in the documentation. Is it posible to do what I have commented? The template is the same for lot of forms with lot of fields and it is not worthy to get one by one all the parameters. thank you, cheers Miguel Sent from Madrid,

Re: Decoding django user password

2009-04-29 Thread Miguel
thank you guys! Miguel Sent from Madrid, Spain On Wed, Apr 29, 2009 at 2:22 PM, Ned Batchelder wrote: > > If you want to login as a user, don't bother with their password (which > can't be decoded anyway). Build another authorization mechanism into > your app so that

Decoding django user password

2009-04-29 Thread Miguel
Hello, is there any way to decode the passwords that django keeps the the auth_user table? It would be really interesting to see if there is any problems in the users part of the web when new information and tasks are added via admin web. regards, Miguel Sent from Madrid, Spain

Re: upgrading django

2009-04-02 Thread Miguel
thank you. It is not an easy upgrade. It may take long time to do it... Maybe the differences between versions are no so big ... Miguel On Fri, Apr 3, 2009 at 12:40 AM, John Baker wrote: > > I did this over dec/jan for an inherited app.. it was an absolute > nightmare.. i had to rew

upgrading django

2009-04-02 Thread Miguel
Hello everybody, I have seem new django versions improve the performance of web applications. I have a huge web aplication and I m thinking about changing it. How hard would be to upgrade django 0.96 to the newest one? Has it backward compatibility? thank you very much, Miguel Miguel Sent

Re: Changemanipulator takes 15 seconds to execute

2009-04-01 Thread Miguel
parameters, that doesnt make any sense ( maybe is the behaviour of manytomanyfield) Thank you very much karen for your patient and support. tomorrow it will be a better day :) Miguel Sent from Madrid, Spain On Wed, Apr 1, 2009 at 8:33 PM, Karen Tracey wrote: > On Wed, Apr 1, 2009 at 1:35 PM, Mi

Re: Changemanipulator takes 15 seconds to execute

2009-04-01 Thread Miguel
but I observe no effect . Maybe, the more of 10 entries of Plantilla_metodo_embebido are the responsible of the long time ... Miguel Sent from Madrid, Spain On Wed, Apr 1, 2009 at 7:16 PM, Karen Tracey wrote: > On Wed, Apr 1, 2009 at 1:03 PM, Miguel wrote: > >> umm, raw_id_ad

Re: Changemanipulator takes 15 seconds to execute

2009-04-01 Thread Miguel
more than 100 000 entries. Could be this the reason to take so much time? I try to use the raw_id but no time is saved ... Miguel Sent from Madrid, Spain On Wed, Apr 1, 2009 at 6:04 PM, Karen Tracey wrote: > On Wed, Apr 1, 2009 at 10:52 AM, Miguel wrote: > >> I don really under

Re: Changemanipulator takes 15 seconds to execute

2009-04-01 Thread Miguel
raw_ide_admin=true) And making the same method call to changemanipulator? should I synchronize the database? Miguel Sent from Madrid, Spain On Tue, Mar 31, 2009 at 5:36 PM, Karen Tracey wrote: > On Tue, Mar 31, 2009 at 11:17 AM, Miguel wrote: > >> >> where should I p

Re: Changemanipulator takes 15 seconds to execute

2009-03-31 Thread Miguel
where should I put "raw_id_admin=True" ? in the foreing key declaration? forma_parte_de = models.ForeignKey('Plantilla_bloque',related_name='dentro_de',blank=True,null=True) and what implications does it have? thank you Miguel Sent from Madrid, Spain On Tue,

Changemanipulator takes 15 seconds to execute

2009-03-31 Thread Miguel
: raise Http404 The problem I have found is that the ChangeManipulator takes me 15 seconds ... And this time is too much for a web applications. Is there any way to avoid this? Thank you in advance. Miguel Sent from Madrid, Spain --~--~-~--~~~---~--~~ You

Re: Updating a model method

2009-03-30 Thread Miguel
thank you, you were right. It was an apache problem. Miguel Sent from: Madrid Spain. On Mon, Mar 30, 2009 at 4:43 PM, Thomas Guettler wrote: > > Hi, > > If you only change the method, but no model, you don't need to call > 'syncdb'. > > If your webserver

Updating a model method

2009-03-30 Thread Miguel
work. Could anybody help me? thank you in advance, Miguel --~--~-~--~~~---~--~~ 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 unsubs

  1   2   >