Re: How to upload pdf files in django

2019-03-03 Thread Luis Zárate
Files come on request.FILES and remember form need to be multipart . El domingo, 3 de marzo de 2019, Hrishikesh K.B escribió: > > > On Saturday, 2 March 2019 20:42:01 UTC+5:30, Akshay Gupta wrote: >> >> and to get back data from form request.POST['file_name'] ?? > > See https://docs.django

Re: Update many to many django

2019-04-08 Thread Luis Zárate
Hola, Las relaciones M2M pueden trabajarse de diferentes formas, acá está la doc de django https://docs.djangoproject.com/en/2.2/topics/db/examples/many_to_many/ Si lo que quieres es hacer algo rápido puedes usar un model form factory https://docs.djangoproject.com/en/2.2/topics/forms/modelforms

Re: Update many to many django

2019-04-09 Thread Luis Zárate
tema = models.ForeignKey(Tema, on_delete=models.CASCADE) > quedo muy atenta a tu respuesta. > Muchas gracias > > El lun., 8 de abr. de 2019 a la(s) 21:11, Luis Zárate (luisz...@gmail.com) escribió: >> >> Hola, >> >> Las relaciones M2M pueden trabajars

Re: Update many to many django

2019-04-10 Thread Luis Zárate
Creo que zip está explicado acá https://www.programiz.com/python-programming/methods/built-in/zip El miércoles, 10 de abril de 2019, Karen Tatiana Mesa Lopez escribió: > Hola Luis, tengo la ultima pregunta, te agradezco mucho tu ayuda > voy a realizar un for doble, mi pregunta puntual seria,

Revert database scheme based on django migrations

2017-09-11 Thread Luis Zárate
Hello people, I really would like you to help me with some thing I need to solve. I have an app that do automated deployment of django apps, that also can update existing deployments. So I need to revert my database to last state if something went wrong. So, my question is, how can I revert all

Re: The view blog.views.create didn't return an HttpResponse object. It returned None instead.can any one help me this issue please nooob here

2017-09-11 Thread Luis Zárate
if request.method == "GET": if request.method == "POST": Uppercase is needed. 2017-09-11 17:36 GMT-06:00 harsh sharma : > here i m learning django and i m stuck on one thing > the web page returning > > The view blog.views.create didn't return an HttpResponse object. It returned > None instead

Re: importar datos en tiempo real de una base de datos externa

2020-03-20 Thread Luis Zárate
Hola, Revisa la siguienten documentación - https://docs.djangoproject.com/en/3.0/topics/db/multi-db/ - https://docs.djangoproject.com/en/3.0/howto/legacy-databases/ La idea es que puede hacer una app que sea una conexión a la db a travez de modelos creados con inspectdb (debe hacer algunas correcc

Re: Inability to Connect django with MySQL database

2020-03-20 Thread Luis Zárate
This looks like your Mysql user can login without password in localhost (are you sure, your user has correct permissions?). Try to create a user with password and allow login from localhost, and change your django settings, also try to connect with your user with mysql client from localhost. El

Re: modelcluster

2015-08-18 Thread Luis Zárate
This sounds like $ pip install django-modelcluster and maybe put it in the settings file INSTALLED_APPS = ( ... "modelcluster", ... ) This is the repository https://github.com/torchbox/django-modelcluster. it is in github so you can make an issue because this project needs documentation. --

Re: How to insert recent session Username or UserId in database table in Django?

2015-08-18 Thread Luis Zárate
You need to make a foreignkey to a user. if you have a custom user look here https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#referencing-the-user-model but if it is a simple django authentication use import django.contrib.auth.models import User class Product(models.Model):

Re: Efficient Large Binary File Streaming

2015-08-18 Thread Luis Zárate
Did you look here https://www.djangopackages.com/grids/g/charts/ ? 2015-08-16 18:25 GMT-06:00 kanav002 : > This is my first week using Django and version 1.8 in particular. I'm > trying to figure out the best way to stream a raw, large, continuously > growing binary file to a plotting function th

Re: Static version of a Django website ?

2015-08-18 Thread Luis Zárate
Do you need to do a backup ? (HTTrack , or wget recursive) or you need to migrate to other site? (make a backup from source and database ) you maybe need to collect structed data from the old site, so scrapy ( http://scrapy.org/) can help. 2015-08-14 8:49 GMT-06:00 Stef

Djangocon Costa Rica next year.

2015-08-18 Thread Luis Zárate
Hello everyone, I want to organize the first "djangocon Costa Rica" next year, I know it's too soon to speak about this but it's the first time here and it's very important to do it well, so the community and I are planning to start the coordination of the event, we are looking for place and spons

Re: Djangocon Costa Rica next year.

2015-08-19 Thread Luis Zárate
I think in two possibilities: 1) Request permission to use the DjangoCon name to the DSF. ¿How can do that? "The only exception to this is the name "DjangoCon", which must not be used without the permission of the DSF;" 2) Change the name to Spanish name like "Conferencias Django" (Django

Re: How to insert recent session Username or UserId in database table in Django?

2015-08-19 Thread Luis Zárate
Did you make migrations ? $ python manage.py makemigrations $ python manage.py migrate El miércoles, 19 de agosto de 2015, Remaze Vs escribió: > operationalError at/ > no such column:products_product.User_id > > -- > You received this message because you are subscribed to the Google Groups "Dja

Re: Time Zone Problem when following on tutorial

2015-08-20 Thread Luis Zárate
install pytz $ pip install pytz In settings USE_TZ = True https://docs.djangoproject.com/en/1.8/topics/i18n/timezones/ And the time_zone is TIME_ZONE = "America/Argentina/Buenos_Aires" More details in https://en.wikipedia

Re: How do you access the HTTP data in a view derived from the generic View class?

2015-08-20 Thread Luis Zárate
with request.POST.get("foo", "") or request.POST.getlist("foo", [] ) 2015-08-20 13:58 GMT-06:00 Daniel Grace : > Suppose I have a view as follows: > > from django.views.generic import View > from django.http import HttpResponse > from braces.views import CsrfExemptMixin > > class TestView(CsrfEx

What I need to know to be a Django full stack developer?

2015-09-04 Thread Luis Zárate
Hello everyone, I am looking for a remote job in the web, and in various sites are looking for Django full stack developer. I know several libraries and programs related with Django so I ask me what I need to know to be a full stack developer? I want to learn the tecnologies that I unknow, becau

Re: Electronic Notebook (ELN)

2015-09-04 Thread Luis Zárate
I don't know if you are looking something like trello (I thing do not), but junctionapps mentioned so i know taiga. If you want something like trello in Django take a look taiga. https://taiga.io/ https://github.com/taigaio 2015-09-04 7:30 GMT-06:00 junctionapps : > trello is a slick app that

Re: What I need to know to be a Django full stack developer?

2015-09-04 Thread Luis Zárate
rily have to be an amazing designer to consider yourself "full stack", but you need to be able to do basic front end layouts and some javascript work. >> On Fri, Sep 4, 2015 at 9:29 AM, Luis Zárate wrote: >>> >>> Hello everyone, >>> >>> I am l

Re: What I need to know to be a Django full stack developer?

2015-09-04 Thread Luis Zárate
up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-14-04 > <https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-14-04> > . > > On Fri, Sep 4, 2015 at 9:30 AM, Luis Zárate wrote: > >> Really only that, I thing this

Re: How to make https work fine under django server?

2015-09-05 Thread Luis Zárate
https://www.digitalocean.com/community/tutorials/how-to-run-django-with-mod_wsgi-and-apache-with-a-virtualenv-python-environment-on-a-debian-vps This tutorial could help you. El sábado, 5 de septiembre de 2015, escribió: > I find there are some configuration about using Django with Apache and mod

Re: What I need to know to be a Django full stack developer?

2015-09-06 Thread Luis Zárate
This is a good reference, thank you and thank you all that answer me. I understand well what is DFS and I will read this guide. El domingo, 6 de septiembre de 2015, Leco leco escribió: > You need this > http://www.fullstackpython.com/web-frameworks.html > > > On Friday, 4 September 2015 21:30:

Re: Multiple model form (not in line) on same page

2015-09-07 Thread Luis Zárate
Hi, Sorry some time ago I saw this project https://github.com/sikaondrej/django-multi-model-form, but now is not found, I did a copy of the code, but it is in spanish, I don't have time to translate this now but can be useful. -- You received this message because you are subscribed to the Goog

Re: Django error report not being sent through email

2015-09-19 Thread Luis Zárate
Your SMTP server are not using TLS or ssl ? El sábado, 19 de septiembre de 2015, Gergely Polonkai escribió: > It belongs to settings.py, as everything else. However, if you haven't overridden it, it should send yeu the emails. Are you sure your e-mail sender settings are set properly? > > Best, >

Re: Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Luis Zárate
In the success method do something like $('myform').reset (); I don't understand well but if you have cache clean it too. El sábado, 19 de septiembre de 2015, Martín Torre Castro < martin.torre.cas...@gmail.com> escribió: > Maybe I should have made the context more clear. > > First of all, we're

Django was present in FSD in Costa Rica

2015-09-21 Thread Luis Zárate
Hello everyone. The past week was the Free software day here in Costa Rica (Yes, It was a week of FSD's because it was in different days in different cities), we had 5 different events for this day in different cities. As part of our effort for introduce Django in this country I imparted two lectu

Re: Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

2015-09-21 Thread Luis Zárate
The error is in the template, please check the url statement inside the template. Or share with ours the template file. El sábado, 19 de septiembre de 2015, sankar vasu escribió: > Hi All, > > I got below error, please advise. please look at the following link: http://pysan.pythonanywhere.com/ >

Re: Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

2015-09-22 Thread Luis Zárate
2015-09-22 12:48 GMT-06:00 sankar vasu : > {{ post.title }} try: {{ post.title }} If not found then check your project url.py , do you have something like urlpatterns = [ url(r'^$', include('myapp.urls') ), ] -- "La utopía sirve para caminar" Fernando Birri -- You received th

Re: Django 1.8 - It translates or it falls back when it should'nt...

2015-09-23 Thread Luis Zárate
I had the same problem with 1.8, l solved editing with external program called poedit. I don't know why django build wrong po file, but when compile the translation is not complete. El miércoles, 23 de septiembre de 2015, PyMan escribió: > Oh shame on me! I had this problem may years ago.here

custom setting provided by myapp

2015-09-23 Thread Luis Zárate
Hi, l have an app than need other apps to run well, I create a requirements file and setup file and insert the required apps in my settings, also include my custom configurations. I want to build the settings file automatically (with installer script) or when the user put my app in his installed_

Re: Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

2015-09-23 Thread Luis Zárate
15-09-23 13:16 GMT-06:00 sankar vasu : > Dear Luis, > > As you said, i tried but can't success. > > Thanks in advance > Sankar B > > On Wed, Sep 23, 2015 at 12:29 AM, Luis Zárate wrote: > >> >> 2015-09-22 12:48 GMT-06:00 sankar vasu : >> >>

Re: custom setting provided by myapp

2015-09-23 Thread Luis Zárate
user have the possibility to change whatever he want and my app only guarantee that run well most of time. 2015-09-23 12:10 GMT-06:00 Bill Freeman : > I would be upset to find an app that I installed fiddling with my project > settings. > > On Wed, Sep 23, 2015 at 12:53 PM, Luis Zárat

Re: Django admin suitable for external users?

2015-09-23 Thread Luis Zárate
I suggest you to create a custom admin site for your external user where you expose only the models that interact with the external user and create a middleware for forbidden access to the other admin site. 2015-09-23 14:49 GMT-06:00 Bill Freeman : > How technical are your users? > What are your

Re: Django admin suitable for external users?

2015-09-23 Thread Luis Zárate
Sure, you could have several admin site with the same models. I read an specific page about how to do that, but right now can remember what is the specific url. Those other links could help you. https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#the-register-decorator http://blog.tryolabs.

Re: E-commerce

2015-09-24 Thread Luis Zárate
http://oscarcommerce.com/ or https://www.djangopackages.com/grids/g/ecommerce/ 2015-09-24 13:42 GMT-06:00 Paul Savignano : > Hi Django-users, > I am somewhat new to Django and have a client interested in an online > store/e-commerce for their foodservice operation. > Are there any tutorials you

Re: Importing models from another app?

2015-10-18 Thread Luis Zárate
Is "mysite" in your python path? 2015-10-17 8:26 GMT-06:00 Gergely Polonkai : > How does it fail, what is the error message? My first guess is that you > should omit "mysite" from your import line, but without the exact message > it's hard to tell. > > Best, > Gergely > On 17 Oct 2015 15:52, "sve

Re: Amazon.com API

2015-10-27 Thread Luis Zárate
This is not a Django question, so I suggest you to search on web and take a look amazon API in Amazon developer's site. El lunes, 26 de octubre de 2015, escribió: > First, I want to know if its possible to search for a product on Amazon.com and before returning the product cost, do a calculatio

Re: Dashboard packages?

2015-11-10 Thread Luis Zárate
take a look https://www.djangopackages.com/search/?q=dashboard 2015-11-10 20:47 GMT-06:00 Allison Ahn : > Hi all, > > I'd like to get an idea of what dashboard packages Django developers > prefer or are using instead of the out-of-box admin. > > Al. > > -- > You received this message because you

Re: Django on CentOS

2015-11-11 Thread Luis Zárate
Are you install your app as root user? (/root/pizzaclub) The permission denied it's because apache run as www-data or http user not as root, so if you install your app as root you probably have read/write permission problems and a big security issue. 2015-11-11 13:01 GMT-06:00 Robin Fourcade :

Re: Django/Python based webmail

2015-11-20 Thread Luis Zárate
I saw that link, but it very basic. And doesn't have SSL support yet. Here was a big thread about secure mail service based on django months ago, maybe they did open source and it's available on internet El jueves, 19 de noviembre de 2015, Ander Linares < dorregaray.ander...@gmail.com> escribió:

Re: Problem of saving and uploading image with DJANGO

2015-11-22 Thread Luis Zárate
And how to call it on the views.py? Create a model form, https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#module-django.forms.models Lastly, how to display it on html? for instance you can do how should I set them and add in the urls.py? For develop environment static file is

Re: Start Django automatically after restarting development system/server in Linux

2015-11-23 Thread Luis Zárate
Why I want to start a debug Django server after restating? I am searching an scenario. El viernes, 20 de noviembre de 2015, vidhi khatri escribió: > Hi friends, > Learn how to start Django automatically after restarting development systems/server in Linux. Share your views to to improve content.

Re: Django formtools wizard with variable number of steps?

2015-11-23 Thread Luis Zárate
Did you see this https://docs.djangoproject.com/en/1.7/ref/contrib/formtools/form-wizard/ ? El lunes, 23 de noviembre de 2015, Shawn H escribió: > I'm wondering if I can use django-formtools to accomplish what I want to. I have a License object, with a one to many relationship to LicenseArea. Th

Re: Correct way to do async forms

2015-11-29 Thread Luis Zárate
take a look https://github.com/yceruto/django-ajax -- "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 from this group and stop receiving emails from it, send an email to django-us

Re: Migrate django project to eclipse/pydev ide

2015-12-28 Thread Luis Zárate
I use Aptana studio that is an eclipse fork and has pydev include also django is well supported. El miércoles, 23 de diciembre de 2015, Gary Roach escribió: > To your first question, in one word $money. I would love to use PyCharm but I am not a commercial developer and can't see paying the freig

Re: 'CharField' object has no attribute 'model'

2015-12-28 Thread Luis Zárate
I guest the problem is here questions_included = models.ForeignKey(models.QuestionAnswer) Django models haven't QuestionAnswer. El sábado, 26 de diciembre de 2015, Simon Charette escribió: > Hi Billlu, > Does one your model use an ArrayField? > > Le samedi 26 décembre 2015 01:34:02 UTC-5, Billu

Re: 'CharField' object has no attribute 'model'

2015-12-29 Thread Luis Zárate
I only read the code. I don't know if you refactorize your code, but based in the code above, I think is like this: class QuestionAnswer(models.Model): ... class QuizAttempt(models.Model): ... questions_included = models.ForeignKey(QuestionAnswer) 2015-12-28 22:57 GMT-06:00 Billu : > Th

Re: Display the form errors in the django template with ajax post

2015-12-29 Thread Luis Zárate
I do it like this create a form template (for abbreviation I will use {{form}} form_template.html > {{form}} > in include form_template.html public_contact.html > > > {% include 'form_template.html' %} > > and in the ajax response from django.template.loader import render_to_string e

Re: Working with Django signals

2015-12-31 Thread Luis Zárate
I suggest you to change the user creation form to set the three attributes that you need (Is medical, is physuitherapist, is patient), so in the first form (when you create the user) you will have usernarme, password, Is_medical, is_physuitherapist, is_patient. Take a look - https://docs.d

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Luis Zárate
I know https://github.com/django-erp/django-erp, but I guest it's not for production yet (see develop branch). 2016-01-04 12:26 GMT-06:00 Fellipe Henrique : > Hello, > > I'm making some research but I don't find any framework for "bussiness > app", like ERP, using django (or flask) > > Anybody

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Luis Zárate
El lunes, 4 de enero de 2016, Víctor Suárez urlpatterns = [ url(r'^', views.index, name='index'), url(r'^submit/(?P\d+)', views.submit, name='submit'), ] Because you have def submit(request, laser_id): escribió: > I don't see a namespace on url.py > > > https://docs.djangoproject.com/e

Re: how to set up jenkin's 'GitHub Pull Request Builder Plugin' for django ?

2016-01-08 Thread Luis Zárate
Do you know buildbot ? http://buildbot.net/ El viernes, 8 de enero de 2016, Abraham Varricatt < abraham.varric...@googlemail.com> escribió: > Hello everyone, > I've attained some success in my endeavor and wanted to talk about it (The following events take place over the past few days). > The f

Re: how to set up jenkin's 'GitHub Pull Request Builder Plugin' for django ?

2016-01-09 Thread Luis Zárate
2016-01-09 3:49 GMT-06:00 Abraham Varricatt < abraham.varric...@googlemail.com>: > Are you aware of anyone using buildbot publicly? Sure, python is an example. See http://trac.buildbot.net/wiki/SuccessStories It has git support -- "La utopía sirve para caminar" Fernando Birri -- You recei

Re: how to set up jenkin's 'GitHub Pull Request Builder Plugin' for django ?

2016-01-09 Thread Luis Zárate
-statustargets.html#change-hooks 2016-01-09 9:59 GMT-06:00 Luis Zárate : > > 2016-01-09 3:49 GMT-06:00 Abraham Varricatt < > abraham.varric...@googlemail.com>: > >> Are you aware of anyone using buildbot publicly? > > > Sure, python is an example. >

Re: invalid literal for int() with base 10: '' using FormSet with File Upload

2016-01-12 Thread Luis Zárate
What is the value of pk in study_form_set = DiagnosticStudyFormSet(request.POST, request.FILES, prefix='studies', queryset=DiagnosticStudy.objects.filter(diagnostic__id=pk)). ? Is pk an int? try print type(pk) El martes, 12 de enero de 2016, Néstor Boscán escribió: > Hi Django Forum > I'm wor

Re: Showing BooleanField checkbox on left

2016-01-14 Thread Luis Zárate
Do you know django crispy forms ? http://django-crispy-forms.readthedocs.org/en/latest/ El miércoles, 13 de enero de 2016, Sayse escribió: > I'm in the process of trying to minimize the amount of code I need to use to render a form with bootstrap styling with the hope of rendering with just {{ f

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
Are you using django 1.9 ? TEMPLATE_CONTEXT_PROCESSORS changed in 1.9 I saw the app and it have video tag so test again and check that you do all steps in the doc. El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > > 0down votefavorite > > i want to create a video from youtube url in

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
Are you using django 1.9 ? TEMPLATE_CONTEXT_PROCESSORS changed in 1.9 I saw the app and it have video tag so test again and check that you do all steps in the doc. El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > > 0down votefavorite > > i want to create a video from youtube url in

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
I thing the problem its here {% video my_video "large" %} You have a tag inside the other tag The reference https://docs.djangoproject.com/en/1.9/ref/settings/#templates El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > yeah i thing so using django 1.9 help me pls > > Τη Παρασκ

How to run an external python script in my Django view

2016-01-16 Thread Luis Zárate
How you call your script in the view? You said that is import as from utils.scriptname import classname but what method do you call in the view. Remember, all code in script file that are not in a function o class will execute at import time. I guest you have something like def my_view(request):

Do you know any Django reservation app?

2016-01-20 Thread Luis Zárate
I need an app that do this: Public user can reserve a cite in specific datetime. Private user manage the cite status. I need to manage medical schedule with this app. -- "La utopía sirve para caminar" Fernando Birri -- You received this message because you are subscribed to the Google Groups

Re: Django installation guide on windows is not correct

2016-02-02 Thread Luis Zárate
did you have installed pip ? https://pip.pypa.io/en/stable/installing/ what version of pip do you have? -- 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-

Re: Scaling Django

2016-02-04 Thread Luis Zárate
" It's hard to hire Django engineers " I don't think that this is a problem because good software developer can learn Django faster than other frameworks. For example I have a Costa Rican startup that develop in Django, as small company in small country we don't have inversor that allows to hire a

Re: Running automated expiration date events

2016-02-08 Thread Luis Zárate
Maybe with celery and Django celery you can do what you want. There is a functionality called crontab that is manage by models with Django celery. So you can create cron task that will call when you need with a reference to you model. As an interesting problem, think in the moment of update you m

Re: How to show python data on html

2016-02-08 Thread Luis Zárate
Database models approuch only the most popular form of manipulate data, but django is MVT so you could have different representation of the "M" (eg. External API) and full use of "VT". An example. def myfunc(request): mydata = my_dict_get_by_api_call() return render(request, 'template.ht

Right place to decrypt/decode data from DB before passing it to UI without affect data in DB itself.

2016-02-08 Thread Luis Zárate
You are using django rest, sure. Why Message doesn't have an function as a property that return the encrypted . El lunes, 8 de febrero de 2016, learn django escribió: > Hi, > I store some data like email text, headers and from email address in encoded format in the database. > I want to have a

Re: Codec H.264 if Free?

2016-02-09 Thread Luis Zárate
I don't understand you question, but if you are looking for video support https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats You maybe need to take a look to ffmpeg (now avconf). El martes, 9 de febrero de 2016, ylativ oknesyl <2vlyse...@gmail.com> escribió: > I am web

Re: mathematical function and django connect

2016-02-09 Thread Luis Zárate
I think you want to show a form with a text input where the user could insert some input eg. math equation to sent to the server. In the server you what to get the input and use it in the standard input of your script, in your script you made what you want (included input validation) finally the

Re: mathematical function and django connect

2016-02-10 Thread Luis Zárate
Someting like def myview(request): dev = mymathfunc(request. POST.get_list('mi_input', [])) return render(request, 'mytemplate.HTML', {'result': dev}) I am not sure if get_list it is a valid function, I know there is one that do the same, but can't remember how is called. If you can g

Re: ./manage.py runserver 0.0.0.0:8080 is not working, No module named django.core.management

2016-02-10 Thread Luis Zárate
Please made other thread for that You need to read the documentation https://docs.djangoproject.com/en/1.9/howto/deployment/ ohn Travolta escribió: > > > On Tuesday, February 9, 2016 at 7:28:31 PM UTC+1, Daniel Roseman wrote: >> >> Django is installed for Python 3.4, but you're running the sh

Re: mathematical function and django connect

2016-02-10 Thread Luis Zárate
OK, start with writing a view https://docs.djangoproject.com/en/1.9/intro/tutorial03/ Show something funny in your HTML and when you be able to see in your browser let me know. El miércoles, 10 de febrero de 2016, Xristos Xristoou escribió: > i dont know how to start to give you an example,is

Re: mathematical function and django connect

2016-02-10 Thread Luis Zárate
Maybe you need to refactor your script, I suggest you something like this: def my_math_func(your_input): your_input = your_input.replace(" ", "") # prevent "1, 2" list_input = [int(x) for x in your_input.split(",")] # others comprobations could be do list_output = [] for x in lis

Re: mathematical function and django connect

2016-02-10 Thread Luis Zárate
It's correct. A recomendation Try to get out all input() from the function, because django is a server side so user don't have a standard input. 2016-02-10 15:22 GMT-06:00 Xristos Xristoou : > if i dont want refactor my scipt,and use this > def my_math_func(input1,input2): > my code >

Re: mathematical function and django connect

2016-02-10 Thread Luis Zárate
I repeat you again OK, start with writing a view https://docs.djangoproject.com/en/1.9/intro/tutorial03/ Show something funny in your HTML and when you be able to see in your browser let me know. How to do that, see the tutorial, basically this are the steps create a django app (python manag

Re: mathematical function and django connect

2016-02-16 Thread Luis Zárate
What is wrong in your code? I suggested you some scripts changes that allows import and use in views. Help us to help you, give us more information about what are you doing, what are you planning to do? Why you think you code is wrong?. Did you create the view as I suggested? I think you need t

Re: Where is the issues page?

2016-02-16 Thread Luis Zárate
https://code.djangoproject.com/ El martes, 16 de febrero de 2016, shivam Agarwal escribió: > I want to contribute to Django but i cannot find the issues page , can someone help me find it? > > -- > You received this message because you are subscribed to the Google Groups "Django users" group. >

Re: Deploy Adagios web application

2016-02-16 Thread Luis Zárate
I don't know where is your problem, and I deployed django with apache time ago, but if I remember well WSGIDaemonProcess is not a IP, It is the user of process that run wsgi so I used like WSGIDaemonProcess myuser WSGIDaemonGroup myusergroup I sorry if I am not in the truth. El martes, 16 de fe

Re: Gmail Django

2016-02-19 Thread Luis Zárate
Those are your real credentials, hurry up and change the password, you must never post your real credentials in public mail list. M1chael is right you need to change the gmail settings for allow login with insecure applications. 2016-02-19 16:03 GMT-06:00 Daniel Wilcox : > You should generate a

Re: 1170, "BLOB/TEXT column

2016-02-19 Thread Luis Zárate
Check your migrations, I think you use TextField the first time, run makemigrations and create the initial migrations, before you run migrate django raise a exception so you change it for CharField and run makemigrations a second time and create the correction in the 002 migration but the initial

Re: key specification without a key length

2016-02-19 Thread Luis Zárate
I response in the other mail, but I am curious changing TextField for. CharField with max_length has big impact in the database performance. I saw you have a lot of TextFields so are you sure that you need all those TextFields ? Or y could you change those TextFields for CharFields with a small ma

form as filter in admin site

2016-02-20 Thread Luis Zárate
I am trying to insert a filter in the admin site that have 2 autocomplete inputs so I was thinking to do passed a form with a custom filter, but I only find a list filter documentation. I solved the problem writing a custom filter, with a little problem with css, because change list view has fe

Re: mathematical function and django connect

2016-02-21 Thread Luis Zárate
use render instead of render_to_response from django.shortcuts import render return render(request, 'blog/calc.html', { 'a' :a, }) 2016-02-21 22:57 GMT-06:00 Xristos Xristoou : > UserWarning: A {% csrf_token %} was used in a template, but the context > did not provide the val

Re: form as filter in admin site

2016-02-22 Thread Luis Zárate
: 'proyeccion__ciclo'} class MatriculaAdmin(admin.ModelAdmin) list_filter = ( MatriculaFilter, ) 2016-02-20 9:56 GMT-06:00 Luis Zárate : > I am trying to insert a filter in the admin site that have 2 autocomplete > inputs so I was thinking to do pass

Re: a question about django admin and language

2016-03-02 Thread Luis Zárate
You could write a middleware after language middleware than check if it is a admin URL and change the language to English. https://docs.djangoproject.com/en/1.9/topics/http/middleware/ https://docs.djangoproject.com/es/1.9/topics/i18n/translation/ El viernes, 26 de febrero de 2016, Will Harris

how to implement lazy settings as django setting

2016-03-02 Thread Luis Zárate
I need to implement a lazy setting like django setting that could be call globally in several apps but get his values from a model in database. I have some settings that need to be change by the admin user, so my apps expect that settings but can not loaded on django setup because needs populate w

how to implement lazy settings as django setting

2016-03-02 Thread Luis Zárate
I need to implement a lazy setting like django setting that could be call globally in several apps but get his values from a model in database. I have some settings that need to be change by the admin user, so my apps expect that settings but can not loaded on django setup because needs populate w

Re: how to implement lazy settings as django setting

2016-03-03 Thread Luis Zárate
Thanks, El jueves, 3 de marzo de 2016, Daniel Chimeno escribió: > Hello, > https://www.djangopackages.com/grids/g/live-setting/ > > > El miércoles, 2 de marzo de 2016, 16:53:09 (UTC+1), luisza14 escribió: >> >> I need to implement a lazy setting like django setting that could be call globally in

Re: Django Hello

2016-03-04 Thread Luis Zárate
In fat bellow says: I can send you some pdf split in files of 2mb. Hola, si quiere puedo envíarle por email algunos tutoriales en pdf . Yo uso linux por lo que puedo partirlos con split y Ud podrá unirlos con cat. Django se basa en python Ud conoce este lenguaje. El viernes, 4 de marzo de 2016

Re: Django Hello

2016-03-04 Thread Luis Zárate
I am not in Cuba, but there are internet limitations (bandwidth) and restrictions (regional banned and site blacklist) expecially if servers are in USA (not America), for this reason it is important to him download a file. El viernes, 4 de marzo de 2016, Luis Zárate escribió: > In fat bel

Re: How to create groups for users in Django

2016-03-04 Thread Luis Zárate
Años observation Person.objects.create(name=request.user) Lazy object is set but name is charfield. M1is not saved. form.save() create other group that is not used. El jueves, 3 de marzo de 2016, escribió: > Hello! > > I have a problem, like in topic, with creating groups in django. I was sea

Re: I don't understand this error - Django 1.9

2016-03-04 Thread Luis Zárate
Do not use the same name of the project in your apps. It is possible to do what you are doing but really needs comprehension of how python works and you need to do extra work to get ready. So my remendation is: start a clean project with other name and copy you app folder. Put attention in what f

Encoding problem (Postgres)

2016-03-06 Thread Luis Zárate
The problem is in your __str__() function, because Python 2 use __unicode__() instead of str to return Unicode string. By default p2 return bytes in __str__ and p3 return Unicode. python_2_unicode_compatible works and I thing it is the best approach because you are support both version 3/2 . I re

Re: Django OVH

2016-03-06 Thread Luis Zárate
Take a look here https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts El viernes, 4 de marzo de 2016, Bob Gailer escribió: > > On Mar 4, 2016 5:09 PM, "Cedric Vallee" wrote: >> >> To whom it may concern, >> >> I followed my friends' advice and coded a website in Django, but now it seems

Re: unhashable type: 'dict'

2016-03-15 Thread Luis Zárate
You are correct, your problem is in logout url , because you need to pass a function not a duct as second parameter. Are you using django auth views ? https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.logout El martes, 15 de marzo de 2016, Deepanshu Sagar escribió

Re: Hey guys can anyone let me know where I can get some of good Django base web apps

2016-03-21 Thread Luis Zárate
https://www.djangopackages.com/ El lunes, 21 de marzo de 2016, Tibin Geo k k escribió: > I am looking for some good Django web applications, if we have any site to download some Django projects let me know > > -- > You received this message because you are subscribed to the Google Groups "Djang

Re: Busqueda de Django admin

2016-03-27 Thread Luis Zárate
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.search_fields Si no es eso tiene que explicar mejor que es lo que necesita. Además recuerde que esta lista es en inglés. 2016-03-27 16:00 GMT-06:00 : > Necesito saber como modificar la búsqueda que viene p

Re: url redirect with kwargs no NoReverseMatch

2016-04-05 Thread Luis Zárate
reverse('yourDollData', args=(doll.id,)) El martes, 5 de abril de 2016, Luigi Mognetti escribió: > http://stackoverflow.com/questions/36411798/url-redirect-with-kwargs-no-noreversematch > > main-project urls.py : > from django.conf.urls import include, url > from django.contrib import ad

Re: how shall I built online address book using Django

2016-04-06 Thread Luis Zárate
Maybe if you help us web could help you. How do you design your problem? What are your coding plans? What problems do you identify? What do you need to know ? ( models, views, urls, admin site) Django and the other frameworks are only utilities, are in you the responsability to solve the problem.

Re: Dedicated pages for specific group members

2016-04-08 Thread Luis Zárate
Admin site is a great example of how to do that. But in general you can use in the view if not request.user.has_perm("app name.perm name): Raise error like 404 or redirect to login I think decorator is provide by django. El jueves, 7 de abril de 2016, Larry Martell escribió: > On Thu,

<    1   2   3   >