Re: JSON serializable issue

2018-07-07 Thread Luis
change the length of the column and into the code. It is working very well. Thanks, Luis 2018-07-07 4:32 GMT-05:00 Melvyn Sopacua : > Hi, > > > However i am not > > sure about it and i cannt find where to looking for. I am sending an > > attachment with the bug. I have many

Css and Images are missing

2008-11-15 Thread Luis Goncalves
ia/ mm_health_nutr.css" type="text/css" /> http://127.0.0.1:8000/media/picture.jpg"; alt="Header image" width="382" height="101" border="0" /> Thanks so much for your help. Best Regards, Luis --~--~-~--~~~-

Re: Css and Images are missing

2008-11-15 Thread Luis Goncalves
e Seelenbinder <[EMAIL PROTECTED]> wrote: > Django doesn't serve the media files, look > athttp://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs > > Luke > > On Nov 15, 10:49 am, Luis Goncalves <[EMAIL PROTECTED]> wrote: > > > Hello guys

Re: Css and Images are missing

2008-11-15 Thread Luis Goncalves
Thanks so much ;) Its working :) -- Luis On Nov 15, 8:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Nov 15, 2008 at 10:49 AM, Luis Goncalves > <[EMAIL PROTECTED]>wrote: > > > > > > > Hello guys I need your help in here. > > &

Re: Template tag i18n failing

2008-09-01 Thread Luis Rodrigues
Thanks for the info. 2008/8/31 Ramiro Morales <[EMAIL PROTECTED]>: > > On Sun, Aug 31, 2008 at 2:09 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote: >> >> This is a bug and has been reported as ticket |1] #7027, you can track >> the advance of the issue there. >> > > This is fixed as of revision 876

Re: Django Image thumbnail and save

2008-09-01 Thread Luis Rodrigues
Thanks, allready got it to work. 2008/8/31 julianb <[EMAIL PROTECTED]>: > > On Aug 31, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> Can someone please point me in the right direction > > I got problems after the refactoring, too: > > http://groups.google.com/group/django-users/br

Django 1.0 - Form documentation

2008-09-21 Thread Luis Sanchez
Hi, Do you know where can I find documentation about forms in django 1.0 specially for validations? Luis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Can I use request.user, in the limit_choices_to filter in Model class?

2010-02-24 Thread Luis Gonzalez
in advance. -- ___ Luis González Medina http://djangotips.blogspot.com http://konatufe.blogspot.com http://twitter.com/konatufe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

Re: IDE

2008-03-25 Thread luis cota
I used to use Eclipse + PyDev - good setup, though extremely bloated. Now I use Komodo Edit (OpenKomodo) for my python coding. Good autocomplete support, much lighter than Eclipse and cleaner UI. Good luck, - Luis On Tue, Mar 25, 2008 at 11:26 AM, meppum <[EMAIL PROTECTED]> wrote:

urls question

2008-07-04 Thread Luis Sanchez
Hi, I want to do this: www.domain.com/part1/ if part1 is : someword1 , someword2 or someword3 go to the view: view1 if part1 is : someword6 , someword7 or someword9 go to the view: view2 How can I do that using urls.py ?? --~--~-~--~~~---~--~~ You receive

Problem loading a js file

2006-09-18 Thread Luis Gustavo
I am trying to use the calender code I found in http://www.dynarch.com/projects/calendar/ in my form template, with a generic view. I have copied the script files to many places in my project and tried different configurations in settings, but I always get the same error, Calendar is not defined.

Re: Completed Django Project

2006-10-26 Thread Luis Armendariz
gt; appreciate it! > > thanks, > Leon > > Very nice site. Just to let you know though, I found one bug. Clicking on the Login button without entering anything gives me an exception traceback (I guess you didn't create a template for an http 500 error) -Luis --~--~-~-

Re: Django captcha problems

2006-03-02 Thread Luis Armendariz
> Template code I use for this form is taken from captcha's class > docstring. > > > Hi Syhpoon, I'm not too familiar with the captchas, but shouldn't you use the template tags {% load captcha %} and {% captcha %} instead?

Re: Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-10-25 Thread Luis Zárate
Hi, Here is solved: https://github.com/luisza/async_notifications/blob/master/async_notifications/tasks.py El vie, 8 oct 2021 a las 7:45, MR INDIA () escribió: > Answer to this query on stack overflow > > Raw link:

Re: How to get the Exception Type

2012-05-14 Thread Luis Gonzalez
Hi as you can see here at http://docs.python.org/tutorial/errors.html in 8.3 handling exceptions theres a piece of code that works as you want. for example try this: try: int("a") except Exception as e: #The key is using "as" and the variable name you like for retrieving the exception because i

Re: View decorator for common navigation elements?

2011-09-30 Thread Luis Morales
wouldn't a template tag work best in a case like this? something like {% NavBar %} or {% GetNav NavName %} that way you can have your own cache code inside you template tag code, like storing the database result into memcached or redis and avoid a relational db call each page. them you you modify

Historical Records

2012-01-27 Thread luis sanchez
Hi everyone, I want to know. how can I save a Historical record when an admin user edit something using admin actions. I mean, save the user and the field that was modified. thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

pyodbc.connect timeout question

2012-01-27 Thread Luis Tavera
) and I wonder why this may be happening. Any hints will be appreciated. thanks, Luis import pyodbc def connect(): try: cnxn = pyodbc.connect('DRIVER={SQL Server NATIVE Client 11.0};SERVER=%s;UID=uid;PWD=pwd' % '127.0.0.1', timeout=5)

Re: post_save signal not working in Django 1.7

2015-01-19 Thread Luis Matoso
Something similar is happening with me too: on a post_save of model it isn't created yet on database, so several error are raised by functions which expect that it is already on DB. When the post_save handler ends, the object is saved normally. On Friday, January 16, 2015 at 4:14:09 PM UTC-2,

Problem with sitemap.xml in django project.

2015-02-01 Thread José Luis
I am deploying a Django project with Gunicorn + Nginx. I create a sitemap.xml file with the sitemap framework . I use a 127.0.0.1:8001 proxy so when i access to example.com/sitemap.xml the result is similar to this: http://127

Migrations force me to have, forever, any name/reference I use in field validators=, choices=, whatever, valid forever (even if the requirements change).

2015-02-25 Thread Luis Masuelli
I have an issue with migrations. Suppose I declare (in my application, with name myapp) a field with a validators= declared. In such value (which is an iterable), I declare a function: class MyModel(models.Model): """ This one is identifiable. """ identifier = models.CharField(

Re: Migrations force me to have, forever, any name/reference I use in field validators=, choices=, whatever, valid forever (even if the requirements change).

2015-02-27 Thread Luis Masuelli
Thanks :D Did not think about squashing migrations as solution for this problem! But it does the job. OTOH the fact about historical models has nothing to do with my problem (since it is not related at all with instancing a model, but just about the definition and not getting a NameError). --

Re: Using proxy kind of Table in Admin Interface

2015-03-04 Thread luis zarate
Maybe you can use get_queryset in the admin class and replace the query manager ref: https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_queryset https://docs.djangoproject.com/en/1.7/topics/db/managers/ you can do something like this: def get_queryset(s

Re: Form In modal

2015-03-04 Thread luis zarate
Fast solution: In Javascritp you can do this: element = document.getElementById("myinput"); window.open("http://127.0.0.1:8000/consulta/?consulta="+element.value, "MsgWindow", "width=200, height=100"); but continue reading Are you use ajax? If the answer is not, then see https://github

Re: Embedding a compiler to my web page

2015-03-07 Thread luis zarate
You should want to read about subprocess https://docs.python.org/3.4/library/subprocess.html Install your favorite compiler and call it with subprocess as a comand line program. 2015-03-07 9:01 GMT-06:00 Snehasish Sen : > How can I embed a c/c++ compiler to my site which can host a programming

Re: Django 1.7 tutorial part 4, url

2015-03-07 Thread luis zarate
2015-03-06 18:39 GMT-06:00 Collin Anderson : > Hi, > > That seems strange. The error says that there's no question with id=1. Are > you sure there's a question with id=1? > > The ending slash seems important to me. I don't know why it would work > without it. > > Collin > > > On Wednesday, March 4

Re: Django 1.7 tutorial part 4, url

2015-03-07 Thread luis zarate
Do you have APPEND_SLASH=False in your settings? https://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#append-slash 2015-03-07 10:31 GMT-06:00 luis zarate : > > > 2015-03-06 18:39 GMT-06:00 Collin Anderson : > > Hi, >> >> That seems strange. The error sa

Re: How to track number of visitors on django site

2015-03-10 Thread luis zarate
I know django-statistics ( https://github.com/attuch/django-statistics ) but I have never used 2015-03-10 15:16 GMT-06:00 Andreas Kuhne : > Hi Vijay, > > Thanks for the suggestion, and we are of course using GA (I should have > mentioned that). The problem is our CEO doesn't like the way GA compi

Re: Django OperationalError

2015-03-12 Thread luis zarate
If you deleted your db and created again and the issue persist then maybe the problem is in your apps. Try removing db, comment 3th party apps in settings and run migrate with only django core apps, put again 3th party apps and run migrate. El jueves, 12 de marzo de 2015, Collin Anderson escribi

Re: django beginner

2015-03-13 Thread luis zarate
what is the output of django-admin --version ? Instructions: 1) open cmd 2) change your current directory to your work directory 3) run django-admi --version 4) copy and paste the output here. The output will be like "1.7.2" 2015-03-13 11:47 GMT-06:00 : > ok i put the folder that the django-a

Re: How to make responsinator.com working with Django?

2015-03-13 Thread luis zarate
I have this problem with my site, if I put my public site http://www.solvosoft.com in responsinator.com all iframes are empty. I guest it's a security configuration to prevent Clickjacking protection. A proof of concept is writting a simple html page with Iframe. http://www.solvosoft.com";> re

Re: django beginner

2015-03-13 Thread Luis Zárate
Your python configuration is ok. so I guest you have someone of this problem. - Your work path has spaces and python confuse with them. - Your system mimetype for .py use notepad++ for open it. I don't know if this solve your issue but I think that check this prevent you a headache I test doing

Re: Django multiple application with common users

2015-03-16 Thread Luis Zárate
You maybe need to take a look documentation of using routes. https://docs.djangoproject.com/en/1.7/topics/db/multi-db/#using-routers 2015-03-16 8:47 GMT-06:00 Domagoj Kovač : > Hi Raphael, > > I also though this are may options, although first option is the easiest i > would like to do somethin

Internationalization to 3rd party Django apps

2015-03-26 Thread Luis Masuelli
I use django-rest-framework==3.0 in an application as an example case (*) of what I am talking about. Most of the messages in DRF are not internationalized, and had to use the following mechanism to create the internationalization for DRF messages: - Properly set LANGUAGES and locale directo

Re: Problem at server startup

2015-03-28 Thread Luis Zárate
What is your machine name? It had a non ASCII character? Do you use __unicode___ ? In python 3 is __str__ El sábado, 28 de marzo de 2015, Anderson Resende < andersonresend...@gmail.com> escribió: > Put this code on first line in your files.py: > > # -*- coding: utf-8 -*- > > > Maybe work! > >

Re: Help on how to be able to properly install python 3.4.3 idle

2015-04-03 Thread Luis Zárate
Are you looking for IDE ? Look here https://code.djangoproject.com/wiki/DjangoResources#IntegratedDevelopmentEnvironments 2015-04-03 23:00 GMT-06:00 Sreenivasarao Pallapu : > To kick start your Python learning go to > https://www.udacity.com/course/ud036, (or) > if you want to go through a book

Re: Multiple Django Forms

2015-04-04 Thread Luis Zárate
mmm Maybe you should use form wizard if you have too many forms https://docs.djangoproject.com/en/1.7/ref/contrib/formtools/form-wizard/ 2015-03-31 5:11 GMT-06:00 Bill Blanchard : > Hi Stephanie, > Ping me offline, I might be able to help you out. > On Mar 30, 2015 1:43 PM, "Stephanie Socias"

Re: Using Unicode in django

2015-04-04 Thread Luis Zárate
Are you runing python 2.7.x ? Think in python 3 compatibility and solve your problem This code can help you. from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class MyModel(models.Model): name = models.CharFie

Re: authenticate() not working

2015-04-04 Thread Luis Zárate
It's because you need to login the user (authenticate don't login only get the user ) It's something like this: from django.contrib.auth import authenticate, login def my_view(request): username = request.POST['username'] password = request.POST['password'] user = authenticate(usernam

Re: authenticate() not working

2015-04-04 Thread Luis Zárate
Sorry I forget to send you a reference link https://docs.djangoproject.com/en/1.7/topics/auth/default/#django.contrib.auth.login 2015-04-04 17:00 GMT-06:00 Luis Zárate : > It's because you need to login the user (authenticate don't login only get > the user ) > > It

Re: Adding admin access for external users

2015-04-04 Thread Luis Zárate
Are you deploy your application ? https://docs.djangoproject.com/en/1.8/howto/deployment/ It's important *Don't use development environment in production apps!!!* It's simple to login user in admin site, create a user and check the *is staff* option and set the user permissions. ( site admin chec

Re: Upload above apache web root?

2015-04-07 Thread Luis Zárate
Hi, Django provide for development MEDIA_URL and MEDIA_ROOT for uploaded file, for production used static deploy strategy, see the documentation about static files. Model file field has an url attribute that return a media url, you use in template like {{obj.file.url}} El martes, 7 de abril de

Re: Upload above apache web root?

2015-04-07 Thread Luis Zárate
) in shell and see what happen 2015-04-07 10:47 GMT-06:00 Stephanie Socias : > Hi Luis, > > Yes, I used {{ datamine.image.url }} in my template but it doesn't work. > I'm not sure how to format my urls.py since I haven't changed the MEDIA_URL > and MEDIA_ROOT. I want

Re: show code in template

2015-04-07 Thread Luis Zárate
I don't understand what you want to do but I guest it's like verbatim https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#verbatim 2015-04-07 12:18 GMT-06:00 Hanz : > Hi everyone, > i want to show some piece of code on my website. What is the best way to > do it? (embed into template)

Re: TIMEZONE

2015-04-08 Thread Luis Zárate
Do you have installed pytz ? Django use it when USE_TZ is True. 2015-04-08 6:54 GMT-06:00 Olalla Galiñanes Feijoo < olalla.galina...@gmail.com>: > Time zone support is disabled by default. To enable it, set USE_TZ = True >

Re: TIMEZONE

2015-04-08 Thread Luis Zárate
Other thing that I forgot in the last mail is how use function now() Wrong solution from datetime import datetime datetime.now() Good solution from django.utils import timezone timezone.now() 2015-04-08 10:16 GMT-06:00 Luis Zárate : > Do you have installed pytz ? Django use it w

Re: Model with two e-mail fields uniques

2015-04-08 Thread Luis Zárate
I don't know if work with many to many is the best approach, because if you know that only have two emails for user and you check his email a lot then the cost of join in time and machine resources increase innecessarily So knowledge of you requirements determine your db scheme. Using the first s

Grouped Select in admin django

2015-05-05 Thread Luis Salvay
I have a model "Company" having many to many relationships with Country and City while country and city have one to many relationship between them. The problem is that when loading an "enterprise" have to select the countries atienede the company and the cities they serve, but the list of cities

Re: django 1.8 and wsgi_mod

2015-05-07 Thread Luis Zárate
Your server log said this (loading my.wsgi) Exception occurred processing WSGI script '/code/projects/my_web/wsgi/my.wsgi'. But your structure said that wsgi file is called different (idrac.wsgi). Other thing, call core your app is not a good idea, do it if you understand well how python import

Re: NoReverseMatch at /polls/1/results/

2015-05-08 Thread Luis Zárate
Which urls.py you paste here? The project URLs or the app urls .? It is because you are using namespace in the url reverse so you need to named in your project's URLs and put the code paste here in your app urls. El jueves, 7 de mayo de 2015, James Schneider escribió: > I'm guessing the issue is

Re: NoReverseMatch at /polls/1/results/

2015-05-08 Thread Luis Zárate
Sorry, James is right, your problem is like James described. Sorry for the noise I read again and see that I understood bad your problem. Sorry El viernes, 8 de mayo de 2015, Luis Zárate escribió: > Which urls.py you paste here? The project URLs or the app urls .? > > It is becaus

Re: httml form to django

2015-05-20 Thread Luis Zárate
And you need to put inside the form the csrf token . {% csrf_token %} ... See: https://docs.djangoproject.com/en/1.8/ref/csrf/ 2015-05-20 16:40 GMT-06:00 술욱 : > Hi, > > just make sure you match your input names with what Django expects. For > example: > > If the HTML is your Form will need a

Re: Kivy and Djangp

2015-05-20 Thread Luis Zárate
Take a look at this http://kivy.org/docs/api-kivy.network.urlrequest.html for Kivy and http://www.django-rest-framework.org/ for django. You need to do a web service with django I suggest a restfull service and with kivy urlrequest create a client. 2015-05-13 18:07 GMT-06:00 john : > Kivy is

Re: change the style of the forms been render in the httml?

2015-05-21 Thread Luis Zárate
It is easy, you only need to put id attribute to form statement like this {{form.as_p}} In CSS use cascade starting by #myform. Other thing I was used form.as_p for printing as , but you could used form.as_ul or form.as_table too. By default as_table is set when you do {{form}} El jueves, 2

httml form to django

2015-05-21 Thread Luis Zárate
You don't need to alter any model, only need to create a form class (better) or using request.POST.get("username"). If you want to do in right way See https://docs.djangoproject.com/en/1.8/topics/forms/ El jueves, 21 de mayo de 2015, dk escribió: > I am not going to update any models for the da

Re: How to concatenate two variables in a template for evaluation..

2015-05-21 Thread Luis Zárate
Mmm maybe creating a tag https://docs.djangoproject.com/en/1.8/howto/custom-template-tags/#writing-custom-template-tags In template {% mytag obj prop %} In tag function def mytag(obj, prop): return getattr(obj, prop) El miércoles, 20 de mayo de 2015, rishi sijariya escribió: > Hi Hayya

Re: How to use unlocalize in views

2015-05-25 Thread Luis Zárate
Set in yours Settings USE_I18N = FalseUSE_L10N = False See: https://docs.djangoproject.com/en/1.8/ref/settings/#use-i18n 2015-05-25 7:01 GMT-06:00 : > Hello guys! > > Is there a way to use unlocalize in views? I know that I can use this in > template ( > https://docs.djangoproject.com/en/1.8/topi

Re: Migrating from sqllite3 to postgres

2015-05-25 Thread Luis Zárate
Mmm probably you are looking for export /import data in django. For export : python manage.py dumpdata --format=json myapp > data.json For import: python manage.py loaddata data.json See https://docs.djangoproject.com/en/1.8/ref/django-admin/#loaddata-fixture-fixture El lunes, 25 de mayo de 20

Re: Gmail oAUTH application for Django

2015-05-26 Thread Luis Zárate
Why don't you use django-allauth? http://www.intenct.nl/projects/django-allauth/ 2015-05-26 7:48 GMT-06:00 Great Avenger Singh : > Hello Django-People, > > I am writing a Gmail oAuth2 application with Django so one can login to > Gmail. (I have Desktop Python script ready with me) > > After

Re: Django formset hidden id field

2015-05-29 Thread Luis Zárate
Mmm I am not sure of this but I guest that this number is not a primary key (pk start in 1 not in 0 in postgres and mysql), it is a formset control number used by formset for group fields in the server side ( for create forms in correct order also) El miércoles, 27 de mayo de 2015, Matthias Müll

Re: I am pretty Good with Django Now but wondered how to program with python with django

2015-06-06 Thread Luis Zárate
If you want open source IDE maybe aptana is the best option for me. I also usted to progam with ninja ide and eclipse + pydev, but now i use pluma in small projects and aptana in big projects, and obviously django shell and admin commands on console. El lunes, 1 de junio de 2015, James Schneider

Re: Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-06-06 Thread Luis Zárate
Did you serch for something like this https://www.*odoo*.com/, It is not django but it is in python and released under the AGPL license. If you want to build your software stack based in django then start searching in https://www.djangopackages.com/. 1. *CRM* system -> client database -> tick

Re: Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-06-06 Thread Luis Zárate
Some useful links: 1. CRM system > https://github.com/kunitoki/nublas -> client database > -> ticket system (client communication including sending emails from > backend) > https://github.com/wyldebeast-wunderliebe/mrwolfe https://github.com/rossp/django-helpdesk 2. Shop > -> c

Re: how to uninstall the django version

2015-06-06 Thread Luis Zárate
If you do a virtual environment with pip it is easy. $ pip uninstall django 2015-06-02 23:45 GMT-06:00 Siddharth Tanna : > copy the file named django-admin from django folder in c: and paste it in > python folder[root directory] > > -- > You received this message because you are subscribed to

Re: No Email field in the User Registration Form

2015-06-06 Thread Luis Zárate
Where is your meta class ? It is not in __init__() function, is it? if it is then problem is there. class Meta: > model = CustomUser > fields = ['email',] > del self.fields['username'] > this is wrong, use exclude in Meta class to remove fields -- "La utopía sirve para caminar" Fernando

Re: Where can I find the admin/base_site.html

2015-06-07 Thread Luis Zárate
python -c " import sys sys.path = sys.path[1:] import django print(django.__path__[0] +'contrib/admin/templates/admin/base_site.html')" 2015-06-07 1:18 GMT-06:00 shimanyi valentino : > python -c "import syssys.path = sys.path[1:]import > djangoprint(django.__path__)" > > -- "La utopía sirve

Re: How to test email-verification in django-registration-redux application on localhost?

2015-06-09 Thread Luis Zárate
Put SITE_ID = 1 in your settings file to fix this error 2015-06-09 7:01 GMT-06:00 akshat : > You're using the Django "sites framework" without having set the SITE_ID > setting. Create a site in your database and set the SITE_ID setting or pass a > request to Site.objects.get_current() to fix

Re: Forum app

2015-06-14 Thread Luis Zárate
Those links maybe can help you https://github.com/vicalloy/LBForum https://github.com/nitely/Spirit For more see https://www.djangopackages.com/grids/g/forums/ 2015-06-14 4:32 GMT-06:00 Arindam : > What are the stable forum apps ? > > -- > You received this message because you are subscribed

Re: Errors with django-rest-auth and django-allauth

2015-06-20 Thread Luis Zárate
As say Stephen Butler you need to install django.contrib.sites (it not enable by default) and set SITE_ID = 1 in your settings. Here is the reference: https://docs.djangoproject.com/en/1.8/ref/contrib/sites/#enabling-the-sites-framework -- "La utopía sirve para caminar" Fernando Birri -- Yo

Re: Best Queryset Practice

2015-06-22 Thread Luis Zárate
Querysets are lazy, so Model.objects.all().filter(...) execute a same query that Model.objects.filter(...).all() and Model.objects.filter(...). For check this tray in shell str(Model.objects.all().filter(pk=1).query) str(Model.objects.filter(pk=1).all().query) str(Model.objects.filter(pk=1).q

Re: ModelAdmin.save_as integrity error

2015-06-23 Thread Luis Zárate
Can I see your Substance save method? Maybe there are something wrong. El martes, 23 de junio de 2015, Mike Dewhirst escribió: > I commented out the save() method in the Substance model (the master model with a number of 1:1 and 1:n relationships) and it started saving as new successfully. Unf

Re: Push Pics on to Website page?

2015-06-28 Thread Luis Zárate
Take a look this: https://github.com/caioariede/django-location-field 2015-06-28 9:03 GMT-06:00 : > Hi Everyone, > > Within Django is there a module to push picture files, i.e., jpeg, gif, > or an interface to Google's Map.API, onto a web site page? > > Regards, > Hal > > -- > You received this m

Re: Búsquedas en una aplicacion

2015-07-07 Thread Luis Zárate
¿Que tipo de búsquedas desea hacer? Si son consultas en la base de datos puede usar el ORM de django para construir la consulta adecuada https://docs.djangoproject.com/en/1.8/topics/db/queries/ Si lo que busca es hacer un buscador para contenido de una página (blog, web page) entonces puede ser

Django 1.8 feature in 1.7.9?

2015-07-09 Thread Luis Zárate
Maybe you need to uninstall django first, clear pip cache and install again. pip uninstall django==1.7.9 rm ~/.cache/pip/*# or wherever it is pip cache folder pip install django==1.7.9 El jueves, 9 de julio de 2015, Tim Graham escribió: > The consequences of replacing the bad wheel fi

Re: STATIC_URL with thumbnail_url Template Tag

2015-07-10 Thread Luis Zárate
Hi, Stephanie Your are using easy-thumbnails, right? so, are you sure that Pillow are right installed ? http://easy-thumbnails.readthedocs.org/en/latest/usage/ As I see your questions is same that this question http://stackoverflow.com/questions/12956788/how-to-thumbnail-static-files thumbnail

Re: design decision tree survey using django admin interface

2015-07-14 Thread Luis Zárate
I know it is not the answer of your question but for your survey design it is important that you see this links. https://github.com/chrisglass/django_polymorphic https://github.com/django-mptt/django-mptt/ I know that because I did a survey app years ago, but unfortunately it is not free and it i

Re: Allow the Prefetch queryset to be used with GenericForeignKey

2014-03-30 Thread Luis Matoso
That would be awesome, somebody has a solution for this? On Sunday, February 16, 2014 2:53:55 PM UTC-3, Robert Kajic wrote: > > I would love it if the Prefetch object allowed me to pass in custom > querysets when prefetching related generic foreign fields. Specifically I > want this in order to

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2016-04-25 Thread Luis Zárate
Sory for not answer before, but I think I could help. First you need to know how django find the templates, so take a look template loaders https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.filesystem.Loader There are two default loaders (filesystem and app ) ['dj

django middleware process exception not call

2016-05-18 Thread Luis Zárate
Hi, I was working with middleware that catch exceptions and redirect to other view depending of except type. My idea was raise custom exceptions in several parts of the code and catch in middlewaware with proces exception function, but I have an exception raise in template tag when template is re

Re: Is there a spanish version of Two Scoops of Django?

2016-05-18 Thread Luis Zárate
That sound very good, so if you need help with translations I could help you in my few free time. Break language barrier is so important for me, I think more people could learn django faster and without discrimination. So ViVa la libertad. :) El martes, 17 de mayo de 2016, David Alejandro Reyes

is there any django app for opendata

2016-05-19 Thread Luis Zárate
Hi, I interested in opendata and open government so I am looking for tools to build a platform for a local government. I really like django, I like to build system with it so I want to implement something useful that help to create and transparent and eficient for free Do you have some recommend

Re: is there any django app for opendata

2016-05-20 Thread Luis Zárate
Sure, I need something like CKAN, I saw it time ago and I forget it. Thanks you. I have not problem if I is not in Django, I like Python too and can learn other frameworks. Thanks you. El viernes, 20 de mayo de 2016, Derek escribió: > Not to discourage you, but there is already a large Python p

Re: Displaying a document

2016-05-21 Thread Luis Zárate
Do you have a model with a fileField? I think you are wrong passing file to template, if you have a model with filefield you can use media url something like class Mymodel(Model): myfile = models.FileField(upload_to="my_file_path_in_media") so you can use a form class Myform(forms.Mod

Re: Displaying a document

2016-05-21 Thread Luis Zárate
2016-05-21 13:21 GMT-06:00 Wilfredo Rivera : > {{candidate.resumeFile}}" {{candidate.resumeFile.name}} " Looking in your code probably you could be interested in https://docs.djangoproject.com/ja/1.9/ref/class-based-views/generic-editing/ -- "La utopía sirve para caminar" Fernando Birri -

Re: How to send e-mail asynchronously

2016-05-28 Thread Luis Zárate
I wrote something for send async notification that works with celery https://github.com/luisza/async_notifications There is a demo project and some ideas about how to implement it. If you like you can use it and if you want to extend do it and let me know for incorporate you're code. El sábado,

Re: Hi - I'm new to Python and DJango

2016-06-02 Thread Luis Zárate
Sure, It's good enough and more. There is some development in ERP but nothing stable or usable (not that I known). So if you are interested in develop something could be great know about. Note: I thing first step is search what programs exists and try to collaborate with one, but if nothing is

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Luis Zárate
Where is STATIC_ROOT ? static_root path needs to match with nginx /static location. El miércoles, 1 de junio de 2016, Roger Lanoue jr escribió: > Hi Django users group. > I am test and learning django out. I have a testing server and got my test page up. > Started to play with the Django suit

Re: CSS question for the Admin

2016-06-02 Thread Luis Zárate
Include your own CSS en admin meta class myAdmin(admin.ModelAdmin): class Meta: css ={'all': ['yourcss.css']} El jueves, 2 de junio de 2016, Mike Dewhirst escribió: > On 2/06/2016 7:31 PM, Michal Petrucha wrote: >> >> On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wr

Re: Why is my Django template not displaying?

2016-06-03 Thread Luis Zárate
Use plays as a list in form. You are passing context_list as context object so all variable inside context_list are available in template but not context_list. Other option is return render(request,'live.html', {"context_list": context_list}) El viernes, 3 de junio de 2016, Dave N escribió: >

Re: Is a good practice to put app inside another?

2016-06-03 Thread Luis Zárate
Django contrib is a good example of how put app inside other package. El viernes, 3 de junio de 2016, Carl Meyer escribió: > On 06/03/2016 01:37 PM, Neto wrote: >> My project has several apps, some of them depend on others, it is ok to >> add for example 3 apps within another app? > > Yep, there'

Re: URL design

2016-06-03 Thread Luis Zárate
I can test this right now but based in my experience in re I think could be like this url(r'^(?P[a-zA-Z0-9_\-]+)/(?P[a-zA-Z0-9_\-]+)/(?P([a-zA-Z0-9_\-]+)/){7})$', views.item_list) Be worry with / in views El viernes, 3 de junio de 2016, Горобец Дмитрий escribió: > Hello, guys. > I have the foll

Network scan tool.

2016-06-07 Thread Luis Zárate
Hi, With your deadline is too difficult (impossible), but if you are a crack in django and celery and nmap this tool could be useful https://pypi.python.org/pypi/python-nmap El martes, 7 de junio de 2016, James Schneider escribió: > > > On Tue, Jun 7, 2016 at 6:01 AM, Mahesh Kss wrote: >> >> H

Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
Hi, I am having this issue in server production, I developed with python 3 and with others fields work great but when file is involved I don't know how to intermediate and remove non ascii characters. Part of my stack trace is: Internal Server Error: /vistapublica/perfil/editar UnicodeEncodeErr

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

2016-06-08 Thread Luis Zárate
here ASCII is the filesystem encoding. > It tells you a way to fix that on Linux/Unix. > > On Wed, Jun 8, 2016 at 2:44 AM, Luis Zárate wrote: > >> Hi, >> >> I am having this issue in server production, I developed with python 3 and >> with others fields work grea

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

2016-06-08 Thread Luis Zárate
I am in Debian, in /etc/locale.gen es_CR.UTF-8 UTF-8 $ locale -a C C.UTF-8 es_CR.utf8 POSIX 2016-06-08 2:01 GMT-06:00 Luis Zárate : > $ python manage.py shell > > >>> import sys > >>> sys.getfilesystemencoding() > 'utf-8' > > > > 2016

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

2016-06-08 Thread Luis Zárate
an't encode character '\xd1' in position 74: ordinal not in range(128) Request information: GET: No GET data 2016-06-08 2:06 GMT-06:00 Stephen J. Butler : > Whats the stack trace? > > On Wed, Jun 8, 2016 at 3:01 AM, Luis Zárate wrote: > >> $ python manage.py shell

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

2016-06-08 Thread Luis Zárate
I am using supervisor and gunicorn for production run as fondomutual user. $ env | grep LANG LANG=es_CR.UTF-8 LANGUAGE=es_CR:es 2016-06-08 2:09 GMT-06:00 Luis Zárate : > After obj.save(). > > File > "/home/fondomutual/entornos/fomeucr/lib/python3.4/site-packages/django/

Re: choices field language

2016-06-21 Thread Luis Zárate
Use in the first line #- coding: utf-8 from __future__ import unicode_literals And put in models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class MyClass(object): def __str__(self): return "Instance of my class" See more in https://d

Re: Django urls.py reload (not from database)

2016-06-23 Thread Luis Zárate
I put all in urls and check permissions with https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.decorators.user_passes_test so if not config.L7V_INITIALIZATED I raise a 404 exception. No need to reload urls. 2016-06-23 8:02 GMT-06:00 Thomas : > Hy django lovers,

Re: python manage.py runserver error

2016-06-24 Thread Luis Zárate
Check running python manage.py migrate other thing, are you sure that you have a correct database setup? El viernes, 24 de junio de 2016, Gary Roach escribió: > Hi Saranyoo > > I noticed that you are using python 2.7 with django 1.9.7. I would check the django docs to see whether the two are co

  1   2   3   >