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

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
urls')), > > url(r'^admin/', include(admin.site.urls)), > url(r'^', include('myproj.urls', namespace='myproj')), > ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) > > On Tue, Apr 7, 2015 at 12:30 PM, Luis Zár

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

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

Invalid HTTP_HOST header in shared server

2016-06-27 Thread Luis Zárate
Hi, I am having some issue with gunicorn/nginx configuration. I have a shared server that support several sites (all based in Django) with the same ip address. Invalid HTTP_HOST header: 'www.mysite.com'. You may need to add ' www.mysite.com' to ALLOWED_HOSTS. I checked and all projects have ALL

Re: Best way to implement list&detail pattern

2016-06-28 Thread Luis Zárate
Maybe with generic view https://docs.djangoproject.com/en/1.9/topics/class-based-views/ Especially with https://docs.djangoproject.com/en/1.9/topics/class-based-views/generic-display/ There is a lot information about how to implement what you need. El martes, 28 de junio de 2016, Jean-Noël

Re: django form data not saving to database

2016-06-28 Thread Luis Zárate
models.OneToOneField(Category,default='category') This is not set in form and not set in view and is not null so when you do post.save() error was raised and post is not saved. I don't sure that you can pass str as default for OnetoOne and I am not sure that you need a OnetoOne field I think fore

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Luis Zárate
Replace $ by django.jQuery For example django.jQuery('body') El domingo, 3 de julio de 2016, Seti Volkylany escribió: > > The Django`s docs tell next: > To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4) is namespaced as django.jQuery. If you want to us

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-04 Thread Luis Zárate
t defined(…)(anonymous function) @ > VM9451:1 > $() > null > $django.jQuery('body') > Uncaught ReferenceError: $django is not defined(…) > > On Sun, Jul 3, 2016 at 9:08 PM, Luis Zárate wrote: > >> Replace $ by django.jQuery >> >> For example django

Re: Invalid HTTP_HOST header in shared server

2016-07-08 Thread Luis Zárate
nobody knows how to solve this problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send em

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
2016-07-08 10:24 GMT-06:00 : > and save the new im You can start reading how to set css and js to form and admin site. See -- "La utopía sirve para caminar" Fernando Birri -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
See https://docs.djangoproject.com/en/1.9/topics/forms/media/ 2016-07-08 10:58 GMT-06:00 Luis Zárate : > > 2016-07-08 10:24 GMT-06:00 : > >> and save the new im > > > You can start reading how to set css and js to form and admin site. > > See > > > > --

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Luis Zárate
I thing java apps have a cache and it is java who is not looking in the database. I was a similar problem with hirbernate time ago. But I never solved other person solved it and I don't know how. El miércoles, 27 de julio de 2016, Constantine Covtushenko < constantine.covtushe...@gmail.com> escri

Re: Installation

2016-07-28 Thread Luis Zárate
Take a look this http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor El miércoles, 27 de julio de 2016, Sergiy Khohlov escribió: > Take a look at https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/ this is perfect doc related to your

Re: New to Django

2016-08-16 Thread Luis Zárate
Hi, Try to implement a custom tag that can print Any dictionary in the form that you want. https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/ El martes, 16 de agosto de 2016, Wolf Painter escribió: > Anyone have any ideas? I'm really stuck here... > > -- > You received this m

Re: multiple django installation in one server

2016-09-07 Thread Luis Zárate
Take a look http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ , You can do this steps for ever django project in the same server 2016-09-07 7:28 GMT-06:00 miarisoa sandy : > Hi guys, > > I hope you are doing fine. > I have googled it but no fruitful resul

Custom form fields in admin site

2016-09-08 Thread Luis Zárate
Hi, I am trying to do something like class MyForm(forms.ModelForm): myextra_field = forms.IntegerField() class Meta: models = Mymodel fields = '__all__' class MymodelAdmin(admin.ModelAdmin): form = MyForm fields = ["name", 'myextra_field'] def save

Re: Python post to remote host

2016-09-08 Thread Luis Zárate
see http://docs.python-requests.org/en/master/ 2016-09-08 5:57 GMT-06:00 alireza Rahmani khalili < sanfrancisco.alir...@gmail.com>: > > > down votefavorite > > > Hi I want to write robot to register in toefl test , I send r

Re: Django group email in spam

2016-09-08 Thread Luis Zárate
I have the same behavior 2016-09-08 7:06 GMT-06:00 Uri Even-Chen : > Same here, and the problem is I filtered the group messages to skip my > inbox in Gmail, and I can't filter them never to send them to spam, because > then they will not skip my inbox (it's a bug in Gmail). So I have to enter >

Re: Custom form fields in admin site

2016-09-09 Thread Luis Zárate
ladmin readonly_fields. > > > > 2016-09-08 18:41 GMT+02:00 Luis Zárate : > >> Hi, I am trying to do something like >> >> >> class MyForm(forms.ModelForm): >> myextra_field = forms.IntegerField() >> >> class Meta: >>

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Luis Zárate
See https://github.com/django-parler/django-parler 2016-09-12 23:02 GMT-06:00 Hanh Kieu : > Hey guys, I'm creating a translation app that allows you to translate from > one object to the other. My translation model has two foreign keys that > links to two words, and on the admin site I want the A

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-30 Thread Luis Zárate
You need to create a setup.py file (see setuptools doc) it's a simple file find examples. Then do python setup.py sdist This will create dist file then surft to the .tar.gz file pip install -u django-poll.tar.gz Or you also can do python setup.py install El martes, 27 de septiembre de 2016,

Re: Django software docs

2016-09-30 Thread Luis Zárate
Are you looking for something like https://d3js.org/ ? Or something like blender with django ? El lunes, 26 de septiembre de 2016, Jani Tiainen escribió: > Hi, > > What you expect Django to do for you? > > Django has been successfully used to write great variety of webapps like e-commerce, blogs

Re: How to: Django development and debugging

2016-10-23 Thread Luis Zárate
I rarelly debug code with django, with external utility, just trace stack when errors appears, buy when I need it I use pydev over Aptana, it has heap monitor, breakpoints, step by step run and other debugger functions. One important thing is that I need to say to pydev that run django with --no

Re: How to: Django development and debugging

2016-10-25 Thread Luis Zárate
2016-10-23 17:08 GMT-06:00 Don Thilaka Jayamanne : > @Luis Zárate > >I dislike VS as IDE but > Please remember, this is Visual Studio Code (cross platform, open source, > free) and not to be confused with Visual Sutdio IDE (full blown IDE runs > only on Windows) > Visu

Re: Read Only by user in Django Admin

2016-10-25 Thread Luis Zárate
you are looking something like https://code.djangoproject.com/ticket/7150 https://code.djangoproject.com/attachment/ticket/7150/admin_view-permission-1.0.patch https://code.djangoproject.com/attachment/ticket/7150/newforms-admin-view-permission-r7737.patch https://code.djangoproject.com/ticket/8936

Re: How to use Django forms for surveys

2016-10-26 Thread Luis Zárate
Hi, we are developing something like you want, but it's a premature project right now, maybe in few months we launch our first stable version (survey monkey be aware...), the project home page is https://github.com/solvo/derb , see development branch for a updated version. So if you are intereste

Re: Adding view permission by default to auth_permission

2016-10-27 Thread Luis Zárate
This is alive in https://github.com/django/django/pull/6734 The other PR was close because this have not merge conflict. I think this functionality is needed an will be included soon. El jueves, 27 de octubre de 2016, mmatt escribió: > On another note, I believe django dev team needs to und

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Luis Zárate
Mmm why not just download Jquery and create a folder called static inside one controlled app, maybe pone inside the project. If you want, you can use django admin jquery but $ is not available because django use django.JQuery for prevent conflict with custom user jquery El jueves, 10 de noviembre

Re: External access

2016-11-10 Thread Luis Zárate
First, start testing you machine port is available in your local network run python manage.py runserver 0.0.0.0:8000 In other machine in the same network test it Suppose your django machine has internal ip address 192.168.1.100, then try to access 192.168.1.100:8000 from your web browser in the

Re: Adding view permission by default to auth_permission

2016-11-10 Thread Luis Zárate
hen back. > > Bests > > On 27 Oct 2016 23:23, "Luis Zárate" wrote: >> >> This is alive in >> >> https://github.com/django/django/pull/6734 >> >> The other PR was close because this have not merge conflict. >> >> I think this functionali

Re: How to hook into the admin site to count login attempts with REST API / proxy?

2016-11-20 Thread Luis Zárate
Hi You can override the admin login page overwriting the URLs, you can put your own login view in admin/account/login after admin include in URLs El domingo, 20 de noviembre de 2016, Reza Shalbafzadeh < rezashal...@gmail.com> escribió: > Hi > you still can use Django axes as described in Django a

Re: File/Folder Sync API?

2016-12-29 Thread Luis Zárate
Are you looking for something like webdav https://github.com/meteozond/djangodav http://django-webdav-storage.readthedocs.io/en/latest/ or something like dinamic dropbox storage https://github.com/andres-torres-marroquin/django-dropbox 2016-12-28 12:15 GMT-06:00 Alexander Joseph : > I'm build

Re: Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-29 Thread Luis Zárate
try to change de django loggin https://docs.djangoproject.com/en/1.10/topics/logging/#examples 2016-12-28 9:45 GMT-06:00 Philip Lee : > Please help! The question are also posted here > http://stackoverflow.com/questions/41363888/django- > doesnt-email-reporting-an-internal-server-error-http-stat

Re: Django search

2017-01-18 Thread Luis Zárate
This could be usefull Model.objects. filter(q='hello', b='world') Can be expressed as params ={'q': 'hello', 'b': 'world') Model.objects.filter (**params) El martes, 17 de enero de 2017, Branko Zivanovic < international11...@gmail.com> escribió: > Yes that is true, and I have succeeded in m

Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
As Andreas suggest I try to create a function that receive a file object and save the excel content there, Django response works like a file so when you have a less than 7 then pass the http response and change the headers. With celery you can store your firters on str as json file and pass to

Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
See http://django.pyexcel.org/en/latest/ Clean code could be made with this library. El miércoles, 13 de febrero de 2019, valentin jungbluth < valentin.a...@gmail.com> escribió: > Thank you Andréas ! > > I understand your comment, but it could be possible to illustrate it with my code ? I spent 1

  1   2   3   >