Re: Implementing a grammar checker on the web
Hi html + textarea + javascript + AJAX? 2015-02-16 9:58 GMT-03:00 Kelvin Nyota : > I have built a grammar checker in Python. It works well in the terminal, > but i don't know how to implement it on the web. How can I implement a > grammar checker on the web, like Grammarly or spellcheckerplus? I could not > find any article that talked about that at all.Most of it was errelevant. > Infact, what I have done with Javascript for my grammarchecker > <http://researchpaperstobuy.com/grammarchecker.html> interface is better. > Please help guys. > > I will not need a database because I have a text file for replacing words. > What I don't know is if I will need some sort of a server to communicate > back and forth for reading, checking, and retrieving. The link on the > grammar checker button should also be protected to prevent people from > using my code to do their grammar checking functionality on their websites. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZTSdZSv0yPw27eNuXFi5UyyyRX9r33UXyrkYFGfrdb5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Implementing a grammar checker on the web
security disable CORS, and add CSRF tokken verification.. if only going to implement the grammar interpreter is way too django uses something simpler like bottle or flask 2015-02-16 16:02 GMT-03:00 Ricardo Daniel Quiroga : > Hi > > html + textarea + javascript + AJAX? > > > > 2015-02-16 9:58 GMT-03:00 Kelvin Nyota : > > I have built a grammar checker in Python. It works well in the terminal, >> but i don't know how to implement it on the web. How can I implement a >> grammar checker on the web, like Grammarly or spellcheckerplus? I could not >> find any article that talked about that at all.Most of it was errelevant. >> Infact, what I have done with Javascript for my grammarchecker >> <http://researchpaperstobuy.com/grammarchecker.html> interface is >> better. Please help guys. >> >> I will not need a database because I have a text file for replacing >> words. What I don't know is if I will need some sort of a server to >> communicate back and forth for reading, checking, and retrieving. The link >> on the grammar checker button should also be protected to prevent people >> from using my code to do their grammar checking functionality on their >> websites. >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Ricardo Daniel Quiroga > > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYCgf0aw-NuL3yNKRnrzUZLca6nJgfzn4n-zzVrcH%3D2Ag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: Necesito ayuda para poner a funcionar django el tutorial no loentiendo
Primero creas un proyecto en un directorio con el comando (abri la consola seleciona el directorio donde trabajar y) ejecuta django-admin startproject miproyecto se crea una carpeta con lo necesario para tu proyecto django en la carpeta ejecutas python manage.py runserver y abres el navegador en 127.0.0.1:8000 veras un felicidades django esta corriendo luego es crear una aplicación, defines los modelos escribes los controladores y diseñas las vistas, por ultimo haces deploy, en el tutorial de django esta bastante explicado como se trabaja no entiendo que parte te pierdes. -Mensaje original- De: Charly Román Enviado: 17/02/2015 14:47 Para: django-users@googlegroups.com Asunto: Re: Necesito ayuda para poner a funcionar django el tutorial no loentiendo este grupo es de habla inglesa, te recomiendo: https://groups.google.com/forum/#!forum/django-es Y definitivamente debes proveer más información. 2015-02-17 9:41 GMT-06:00 Anibal Manuel Solorzano Nuñez : alguieme puede colaborar sobre como iniciar a trabajar con django apenas lo tengo instalado y no que archivo ejecutar y no entiendo como es que hay que trabajar con python -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/97683752-e920-4b4a-a203-85432bbbe9a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Charly Román Software Developer http://croman.mx -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABeWMUYHvBEtAGEeKOHckOEMNE1ZywU%2BDp8d6_aLCV0cP%2BjwqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54e3acf7.0858e00a.17ff.a8de%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem in the Tutorial 01
get() si no existe coincidencia te tira error asi de simple. 2014-07-24 11:41 GMT-03:00 Daniel Roseman : > On Thursday, 24 July 2014 13:53:54 UTC+1, Fabian Zentner wrote: > >> Hey guys, >> >> I'm new with Django and Python as well. I'm doing the tutorial 1 on the >> website (https://docs.djangoproject.com/en/1.6/intro/tutorial01/). >> I'm using Python27 (C:\Python27) >> In C:\Python27\Scripts\ I have the project mysite and polls like in the >> tutorial >> >> In the part "Playing with the API" >> >> >> ** >> > > >> >> >> >> >> >> *>>> p.choice_set.all() [, > object>, , , > object>, ] >>> p.choice_set.count() 6 * >> I get always Poll: Poll object or Choice: Choice object instead of the >> defined text. Also I have problems with the part of >> >> >> >> * p = Poll.objects.get(pk=1) >>> p.was_published_recently() * >> Could somebody help me please? Before I start with the tutorial number >> 2... >> >> Thanks a lot. >> >> Fabian >> > > > After you make changes to the code, you need to reload it: the easiest > way is exit your shell and go back in. > -- > DR. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d80dc547-6194-4398-81d9-e93db01ca9cf%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/d80dc547-6194-4398-81d9-e93db01ca9cf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga - L2Radamanthys Msn: l2radamant...@gmail.com ricardo_q...@hotmail.com Email: l2radamant...@gmail.com l2radamant...@saltalug.org.ar ricardoquiroga@gmail.com sitio Web: http://www.l2radamanthys.com.ar http://github.com/L2Radamanthys Facebook: http://es-la.facebook.com/L2Radamanthys Twitter:@l2Radamanthys - -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZs4Zh2B2RgS%2BSfrDZLLHSUZ00tD37nFEFB-Ou1%3DB1swA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: static files in Django 1.7 ; Anything was change?
hi in you setings.py add in INSTALLED_APPS add 'django.contrib.staticfiles', STATIC_URL = '/media/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "media"), #you template path ) 2014-09-15 14:27 GMT-03:00 Fellipe Henrique : > I in development mode, DEBUG = True. using the django server. > > I already run './manage.py collectstatic' they create all my static in my > path.. but don't work... > > T.·.F.·.A.·. S+F > *Fellipe Henrique P. Soares* > > e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ > 's/(.)/chr(ord($1)-2*3)/ge' > *Blog: http://fhbash.wordpress.com/ <http://fhbash.wordpress.com/>* > *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>* > *Twitter: @fh_bash* > > 2014-09-15 8:41 GMT-03:00 Vladimir Chukharev >: > >> Yes, there are some changes, see release notes. In particular, you >> probably need to run 'django-admin collectstatic'. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Django users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/django-users/ExbIrYMBKhs/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/ff527a78-0c27-4b99-89bc-34059132855a%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/ff527a78-0c27-4b99-89bc-34059132855a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTqgSJnoGw7EseXGgQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTqgSJnoGw7EseXGgQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga - L2Radamanthys Msn: l2radamant...@gmail.com ricardo_q...@hotmail.com Email: l2radamant...@gmail.com l2radamant...@saltalug.org.ar ricardoquiroga@gmail.com sitio Web: http://www.l2radamanthys.com.ar http://github.com/L2Radamanthys Facebook: http://es-la.facebook.com/L2Radamanthys Twitter:@l2Radamanthys - -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHa9cV2pv1makDKGv3RYsf2z%2Bv18NyKuFKwAs7M3p5dYcw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: OO in Django
Hi I think I would do as follows :P #models.py code class Customer(model.Model): *** class Transation(model.Model): *** customer = models.ForeignKey(Customer) class Person(Customer): *** class Corporation(Customer): *** *** you object atributes 2014-06-23 11:18 GMT-03:00 Eduardo Basílio : > Hello, > Can you help me on a question OO in Django? > > How the Transaction class can reference Person or Corporation? > * Customer is an abstract class > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/26474e7c-f79e-416b-8569-9edb689dc191%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/26474e7c-f79e-416b-8569-9edb689dc191%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ---- Ricardo Daniel Quiroga - L2Radamanthys Msn: l2radamant...@gmail.com ricardo_q...@hotmail.com Email: l2radamant...@gmail.com l2radamant...@saltalug.org.ar ricardoquiroga@gmail.com sitio Web: http://www.l2radamanthys.com.ar http://github.com/L2Radamanthys Facebook: http://es-la.facebook.com/L2Radamanthys Twitter:@l2Radamanthys - -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHa%3Da6%3Drz%3DXFoK%3DwCcqK8HPRhstDc3Mo2Dps0TpnNhgq2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Start Gunicorn on boot
Use supervisor to start gunicorn on init see this guide http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ gunicorn_start.bash #!/bin/bash NAME="hello_app" # Name of the application DJANGODIR=/webapps/hello_django/hello # Django project directory SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket USER=hello # the user to run as GROUP=webapps # the group to run as NUM_WORKERS=3 # how many worker processes should Gunicorn spawn DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name echo "Starting $NAME as `whoami`" # Activate the virtual environment cd $DJANGODIR source ../bin/activate export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE export PYTHONPATH=$DJANGODIR:$PYTHONPATH # Create the run directory if it doesn't exist RUNDIR=$(dirname $SOCKFILE) test -d $RUNDIR || mkdir -p $RUNDIR # Start your Django Unicorn # Programs meant to be run under supervisor should not daemonize themselves (do not use --daemon) exec ../bin/gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ --user=$USER --group=$GROUP \ --bind=unix:$SOCKFILE \ --log-level=debug \ --log-file=- 2017-10-20 6:23 GMT-03:00 Nonverbis M : > Antonis, thank you. > Yes, this is upstart. I'll try it with systemd as you suggested. > >> >> -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/c8308c91-bce1-4bb0-9cdb-16ce326d4e13%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/c8308c91-bce1-4bb0-9cdb-16ce326d4e13%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYH26Jo6tWmtc%2BNhrmZfpnfdAebUr%2B2UQEYMrQsDwzhow%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How to access selected options from a select list to show them in a table ?
Hello, What you must do is to use Javascript and AJAX, to have the desired behavior, I guess would be for onchange event. By the way it is therefore desirable to handle the tables in the following format regards 2016-05-03 8:06 GMT-03:00 : > So i have a select list and a table,and i want to show only the data that > corresponds the selected item. > > This is my index.html file > > > Owners > --- > {% for owner in owners %} > {{ owner.person_id }} {{ owner.first_name }} > {{ owner.last_name }} > {% endfor %} > > > > > Id > Space > City > Street > Price > Purpose > > > > {% for info in information %} > > > {{ info.owner_id }} > {{ info.space }} > {{ info.city }} > {{ info.street }} > {{ info.price }} > {{ info.get_purpose }} > {% endfor %} > > > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e3502e4e-c58b-46e7-8201-9b07edcca7dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/e3502e4e-c58b-46e7-8201-9b07edcca7dc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHaaGX5LTa%3D_WteSoB8-tpTxvvUWVCjHUcBrutf79WOAXg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: multi-select the items from drop down list and save them in database.
Hi, I can think of many ideas,but you could try https://pypi.python.org/pypi/django-select-multiple-field/0.3.1 2016-05-10 3:06 GMT-03:00 Nikita Jadhav : > hii everyone, > I want to multi-select the items from drop down list and save them in > database. how it can be achieved?. by using simple code in django > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/691507a3-c3e8-4f69-b8d3-c6dad72a09dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/691507a3-c3e8-4f69-b8d3-c6dad72a09dc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHY0Q-Kfi1u%2BzD0OqAKw5OXSbNEzN%2B40%2BZ3pSNJp1E9GjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: how to upload file with pjango
Hello, add enctype="multipart/form-data" param in you html form see more info https://docs.djangoproject.com/es/1.9/topics/http/file-uploads/ 2016-05-27 6:45 GMT-03:00 meInvent bbird : > how to upload file with pjango ? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHatRpoNWkkcd4rJpCni1qCGbnHpJj4HCnf%2BJZRLstUG8A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: UpdateView not saved
add enctype="multipart/form-data" param in you html form tag :) 2016-05-27 11:29 GMT-03:00 Dariusz Mysior : > I try update my photo in avatar field but it not save changes, please look > on it > > update_form.html > > {% extends 'base.html' %} > {% block title %}Edycja profilu{% endblock %} > > > {% if user.is_authenticated %} > {% block top_menu %} > {{ user.username }} > Wyloguj się > {% endblock %} > > {% block content %} > > {% csrf_token %} > {{ form.as_p }} > > > {% endblock %} > {% else %} > > {% endif %} > > > views.py > > from django.shortcuts import render > from django.views.generic import TemplateView, UpdateView > from users.models import MysiteUser > > class ProfileView(TemplateView): > template_name = 'profile.html' > > class EditView(UpdateView): > model = MysiteUser > fields = ['avatar'] > pk_url_kwarg = 'pk' > template_name = 'update_form.html' > success_url = '/myprofile/' > > def form_valid(self, form): > self.object = form.save() > return super(EditView,self).form_valid(form) > > > models.py > > from django.db import models > from django.contrib.auth.models import AbstractUser > > ## > > class MysiteUser(AbstractUser): > avatar = models.ImageField(upload_to="avatar") > > def __str__(self): > return self.username > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/968faf01-3b6b-43d8-8c98-d1555d48ee4d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/968faf01-3b6b-43d8-8c98-d1555d48ee4d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYQSaBy0oUXNpvSvm%3D9SYi%2BheVANwDnMdGLOhY3GFQPSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: how to upload file with pjango
I suggest redefining the form class UploadFileForm(forms.Form): title = forms.CharField(max_length=50) file2 = forms.FileField() MAX_FILE_SIZE = forms.CharField(widget=forms.HiddenInput(), initial = 1) and in template upload.html you tried this? Title {{ form.title }} Choose a file to upload: {{ form.file2 }} {{ form.MAX_FILE_SIZE }} 2016-05-31 22:53 GMT-03:00 meInvent bbird : > after following the web, > > it only run one time first time the function in views.py > but after press button, it do not run post method because console did not > show POST. > > where is wrong? > > > https://drive.google.com/file/d/0Bxs_ao6uuBDUdGpUX3p0TjZrRGM/view?usp=sharing > > > > On Friday, May 27, 2016 at 9:50:29 PM UTC+8, Wyrven no L2Radamanthys wrote: >> >> Hello, >> >> add enctype="multipart/form-data" param in you html form >> >> see more info >> >> https://docs.djangoproject.com/es/1.9/topics/http/file-uploads/ >> >> >> >> 2016-05-27 6:45 GMT-03:00 meInvent bbird : >> >>> how to upload file with pjango ? >>> >>> -- >>> 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...@googlegroups.com. >>> To post to this group, send email to django...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> >> Ricardo Daniel Quiroga >> >> -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/8dbb457f-07b7-4839-aa5b-757348a2b266%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8dbb457f-07b7-4839-aa5b-757348a2b266%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHb5tHm7AE6m-%2B3DCn86WKm6f%2BipL0y%2B2FAF5scEPaC%3D9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django suit and Static files not working in Django 1.6
The current version for django 1.6 is obsolete... please upgrade to 1.9 2016-06-01 15:34 GMT-03:00 Roger Lanoue jr : > Hello All. > > I learning my first Django experience and I am making some headway. I am > stuck on my test server and Django suit admin. > > I my goal is to get the new admin from Django suit to work. > > *Server setup* > Ubuntu 14.04 ( A Digital Ocean VPS with one click install ) > Django Version 1.6 > Python: 2.7 > Nginx > Postgres > > *Test server * > http://162.243.201.237/ > > *Admin (with django suit installed ) * > http://django-suit.readthedocs.io/en/develop/ > http://162.243.201.237/admin/ > > User: Demo > password: Demo > > The css is being applied to the djando suit . > > *Ran command:* > python manage.py collectstatic > > Results: 0 static files copied, 116 unmodified. > > > *My setting.py basics* > > DEBUG = False > > TEMPLATE_DEBUG = False > > STATIC_URL = '/static/' > > STATICFILES_DIRS = [ > os.path.join(BASE_DIR, "static"), > '/home/django/django_project/static/', > > When I look in to the static directory. nothing had been copied. > > Thank your for taking time to look at this and also sharing with me any > clues on how to fix this. > > Roger > > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ee2b40b1-0716-4f5b-b4f1-8f35a60d54f6%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ee2b40b1-0716-4f5b-b4f1-8f35a60d54f6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHbWvj4haOuRaBDKmE0NOkCr7fni6%3DN5wiTEYEg47ZUxgQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Real time change color website
Hi this site use many overlaping layers in a canvas to generate the image. This is a Javascript cambas problem not django. 2016-06-30 5:59 GMT-03:00 Akhil Lawrence : > Hi, > > Your requirement has nothing to do with django. The images should be > combined using JS/CSS. Its a pure front end tweak. > > If your question is regarding the backend. Definitely django can do the > job. What I mean is, you can build API's using django which will server > layers of images requested and using JS/CSS you have to combine all those > layers to get the actual picture. > > > http://stackoverflow.com/questions/18235709/css-placing-one-image-on-top-of-another > may help you to arrange the images.. > > > > On Thursday, 30 June 2016 12:30:51 UTC+5:30, Arshpreet Singh wrote: >> >> Hey guys, Anyone aware of example/project developed in Django that can >> make functionality of website like this: >> https://www.msistone.com/kitchen-visualizer.aspx#?id=main_image5 >> Where I can change object colors in real time, as I see from this image >> https://www.msistone.com/VisualizerResponsive/images/kitchen51/VS0029FL.png >> multiple images being loaded. >> >> Is such technique possible using Django? >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZoa4O-Yo_S1i2P4sJ%2Bkb%2B44dVPDVrbXY59DZ69xwhVMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Contribute to Django - Python 3 or Python 2
the next django releases don't suport python 2.x. if you want to use python 2.x in django use the 1.8 LTS http://stackoverflow.com/questions/28908401/does-django-have-any-plans-to-drop-support-for-python-2-in-the-near-future https://www.djangoproject.com/weblog/2015/jun/25/roadmap/ 2016-06-28 22:13 GMT-03:00 Tim Graham : > You can use either, but use Python 3. You can rely on the continuous > integration server to test your pull request on Python 2 and debug any > issues > > Can you given an example of "most places python2 is used"? In fact, the > tutorial says, "This tutorial assumes you are using Python 3." > > On Tuesday, June 28, 2016 at 7:45:02 PM UTC-4, premdjango wrote: >> >> Hello, >> Im trying to contribute to Django project and started with this document. >> >> https://docs.djangoproject.com/en/dev/intro/contributing/ >> >> Here in couple of places I see Python3 is being used but in most places >> python2 is used. >> >> Should I use Python 3 or Python 2? >> >> >> -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHa0Onh2Ng03sHUDOJAcz3BkLGASkWAkDcJkkF7U884GoA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How can i add my django project to Bitbucket ?
$ cd myproject $ git init $ touch README.md $ git add . $ git commit -m 'first commit' $ git remote add g...@bitbucket.org:[MyUSER]/[ProyectName].git $ git push origin master 2016-07-05 9:12 GMT-03:00 Fred Stluka : > Deepak, > > Bitbucket has pretty good documentation, including a Getting Started > section. Should tell you all you need to know. See: > - https://www.google.com/search?q=bitbucket+getting+started > > --Fred > -- > Fred Stluka -- mailto:f...@bristle.com -- > http://bristle.com/~fred/ > Bristle Software, Inc -- http://bristle.com -- Glad to be of service! > Open Source: Without walls and fences, we need no Windows or Gates. > -- > > On 7/5/16 7:18 AM, Deepak Sharma wrote: > > I have created a simple django project and i have created a simple app in > it . Now i want to use Bitbucket for code development since we are working > in a team how could i possibly do that ? > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > <https://groups.google.com/d/msgid/django-users/2a4952bd-bf36-42d9-a479-68e95b623ae2%40googlegroups.com?utm_medium=email&utm_source=footer> > https://groups.google.com/d/msgid/django-users/2a4952bd-bf36-42d9-a479-68e95b623ae2%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com > <https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYCMKzB5TZe-kf4vOi9%3DB_TdjL_BF_1ft1tZEBSydtBxQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How can i add my django project to Bitbucket ?
correction $ git remote add origin g...@bitbucket.org:[MyUSER]/[ProyectName].git 2016-07-05 10:38 GMT-03:00 Ricardo Daniel Quiroga : > > $ cd myproject > $ git init > $ touch README.md > $ git add . > $ git commit -m 'first commit' > $ git remote add g...@bitbucket.org:[MyUSER]/[ProyectName].git > $ git push origin master > > > > > 2016-07-05 9:12 GMT-03:00 Fred Stluka : > >> Deepak, >> >> Bitbucket has pretty good documentation, including a Getting Started >> section. Should tell you all you need to know. See: >> - https://www.google.com/search?q=bitbucket+getting+started >> >> --Fred >> -- >> Fred Stluka -- mailto:f...@bristle.com -- >> http://bristle.com/~fred/ >> Bristle Software, Inc -- http://bristle.com -- Glad to be of service! >> Open Source: Without walls and fences, we need no Windows or Gates. >> -- >> >> On 7/5/16 7:18 AM, Deepak Sharma wrote: >> >> I have created a simple django project and i have created a simple app in >> it . Now i want to use Bitbucket for code development since we are working >> in a team how could i possibly do that ? >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> <https://groups.google.com/d/msgid/django-users/2a4952bd-bf36-42d9-a479-68e95b623ae2%40googlegroups.com?utm_medium=email&utm_source=footer> >> https://groups.google.com/d/msgid/django-users/2a4952bd-bf36-42d9-a479-68e95b623ae2%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com >> <https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Ricardo Daniel Quiroga > > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZG%3DD0sUGAqU30SPBh%2B1ATjQt0Vvi_LZc89R73osyk5RA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How do I fetch table values in pdf using django?
http://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text 2016-07-12 10:19 GMT-03:00 Derek : > Here's a good tutorial: > > > https://assist-software.net/blog/how-create-pdf-files-python-django-application-using-reportlab > > > On Tuesday, 12 July 2016 13:29:00 UTC+2, Aslam Sha wrote: >> >> >> How do I fetch table values in pdf using django? >> >> ** I AM USING REPORTLAB FOR PDP* >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYtxDz4_qWz5wRNcd1EvKVmUA98TRY0vd1497oUHMtYpg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Curl PUT Request With JWT Authorization Header
I using Postman, is a plugin of chrome for test xhr petitions 2016-08-22 23:42 GMT-03:00 Peter Boyles : > I am still getting a hang of using curl for testing API request from the > terminal. I have a particular issue with formatting because the API request > I am attempting requires a JWT Token to be passed with every call. The > request I am attempting to pass is PUT request and my question is where to > place the header for the JWT token authorization. I have tried the > following format and I get a error Could not resolve host: —H curl: (6) > Could not resolve host: Authorization: > > > curl -X PUT -H "Authorization: JWT " -d "field=value" > "https://url/update_record//" > > > Any ideas? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHbxedWu%3DmzqPUhCvxo93-tr_fFP9aKk7Qov%2BzRtkzucQw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: error in installing django[argon2] -regarding
ggs > replace_conflicting=True, > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", > line 826, in resolve > dist = best[req.key] = env.best_match(req, ws, installer) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", > line 1092, in best_match > return self.obtain(req, installer) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", > line 1104, in obtain > return installer(requirement) > File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 380, > in fetch_build_egg > return cmd.easy_install(req) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 663, in easy_install > return self.install_item(spec, dist.location, tmpdir, deps) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 693, in install_item > dists = self.install_eggs(spec, download, tmpdir) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 873, in install_eggs > return self.build_and_install(setup_script, setup_base) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 1101, in build_and_install > self.run_setup(setup_script, setup_base, args) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 1089, in run_setup > raise DistutilsError("Setup script exited with %s" % (v.args[0],)) > distutils.errors.DistutilsError: Setup script exited with error: > command 'x86_64-linux-gnu-gcc' failed with exit status 1 > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/024e6290-a37c-4b72-80db-cd3b3a5832ea%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/024e6290-a37c-4b72-80db-cd3b3a5832ea%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHbDin%2BBB%3DYEMmL2HKLUxpQfyx2HdhX8aU4OzJQEJt5juQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Package a virtualenv to deploy across multiple systems?
create a docker image alternative? 2016-09-22 11:20 GMT-03:00 Saeon Tao : > i just been learning about openstack... which i think uses a lot of > docker... the idea is to make all apps independent of OS > > On Thursday, September 22, 2016 at 3:25:48 AM UTC+2, Abraham Varricatt > wrote: >> >> Hello, >> >> Do we have any standard/recommended way to distribute the python >> virtualenv used in a django application across multiple servers? >> >> >> -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/3b6363bb-f34e-4470-bfc1-548c27ac3ca4%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3b6363bb-f34e-4470-bfc1-548c27ac3ca4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHYhTKCHd%2BoimbSBVKTgETXiKm_aszbV4-OD3pq0kiVuFA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Hello - need help on accessing current user in django forms.
HttpRequest.user¶ <https://docs.djangoproject.com/es/1.10/ref/request-response/#django.http.HttpRequest.user> return the autenticated user in django def miview(request): login_user = request.user ... in case you have not logged in return None 2016-09-23 9:44 GMT-03:00 Tim Graham : > Try a web search for "django passing request to a form". > > Here's the first result: http://stackoverflow.com/ > questions/6325681/passing-a-user-request-to-forms > > On Friday, September 23, 2016 at 7:17:32 AM UTC-4, Naresh Kumar wrote: >> >> Hello, >> >> I need filter a queryset based on current user in Django forms. >> >> kindly help me if you find any. >> >> Thanks, >> >> Naresh >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZSEK3YO9Tnj6vEetL0D19sSnd8OH5XOp6dZYj3rkDRvQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: django-admin commands, diango 1.10 with python 2 & python 3 on windows installed
Hi, Use and create a virtualenv to work with your specific python version > virtualenv -p alternative create a python2.bat and add to the path for call python, remove the secundary python from path > python2 2016-09-26 16:16 GMT-03:00 anton : > Hi, > > I am using django 1.10.1 with the following configuration: > > - windows 7 64bit > - python 2.7.12 32 bit > > Now I am switching to python 3 so I installed additionally > python 3.5.2 64 bit. > > I still need to keep python 2 because I have > also trac (https://trac.edgewall.org) with mercurial > (https://www.mercurial-scm.org) installed both still needing python2. > > Now my question: > > The windows PATH env variable contains python35 and python/scrips > paths. > > With python 2.7 allone I could call on the console django > admin-commands like: > > >> manage.py showmigrations > or simply > >> manage.py > to see all commands > > Now woth both pythons installed > >> manage.py > shows me all commands > > But if I try to execute one command like > > >> manage.py showmigrations > > it does ... nothing, no error ... nothing. > > If I call python like > > >> python > > on the command line the python 3.5.2 shell starts > > The only way to make the django-admin commands work > is to call them like this: > > >> py -3 manage.py showmigrations > > Now it works. > ( of course prepending the full python exe path works too > like > >> c:\python35\python manage.py showmigrations ) > > Does somebody know the trick to use python 3.5 without the > need to use "py -3"? > > Or is a simultanuously installation of python 2 and python 3 on windows > a no-go? > > Thanks for a hint > > Anton > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/nsbs5n%24sdk%241%40blaine.gmane.org. > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHaS0QedpDFqGT3OBTuG8ZtHhGhxE2yh4n72jj_EXuRn-w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Display ManyToManyField value or a select_related query in an html object list
Hi, model.many_to_many_atribute.all() model.many_to_many_atribute.find(name="carl") El lun., 24 jun. 2019 a las 19:18, Charlotte Wood (< charlotte.w...@epiccharterschools.org>) escribió: > HELP! > > Do ManyToManyFields just not print? > > I see them in my form selection. > > Everything works fine, but when I try to put the linked item on a list > form, i get: project.model.none for the value. I cannot figure out how to > make all the values print. HELP! PLEASE!! > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ec36b6b0-dc7a-4534-9af3-ae0a173fa493%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ec36b6b0-dc7a-4534-9af3-ae0a173fa493%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHbGHpgzBdqzsvj%3DVuC-AF3%2BXKGkVpmnKhTtoV-5irSYjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: django on Windows
The Best way is install activepython use 32bits for more compatibility with any modules and open cmd.exe pip install -upgrade pip pip install django sorry for bad english . I speak spanish :( -Mensaje original- De: Robin Lery Enviado: 01/10/2015 09:23 Para: django-users@googlegroups.com Asunto: Re: django on Windows Did you install python? And is it in your environmental variable? If both the answers yes then you could try all the commands using cmd prompt in windows. On 1 Oct 2015 17:51, "Антон Заровский" wrote: How use concole commands at windows? -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9d6d648-f9cd-4f37-8214-9d0d0927c75d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B4-nGqTnJ9iTeDwoZBjU%2BcJ3H2Vcs-8VUtsKbbR1NXP8tm7wQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/560d8a49.d0ed8c0a.b1ab9.0e25%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
Re: Foreign key in sqlite3
add foreign key in model, not in database, but it can cause conflicts with django. anyway if you even want to do it reviews the documentation SQLite 2015-09-30 13:12 GMT-03:00 Gergely Polonkai : > Assuming you are using Django and it's ORM, the same way as in any other > database: > > fieldname = models.ForeignKey(AnotherModel) > On 30 Sep 2015 15:18, "Bhanu Kathuria" <001kathuriabh...@gmail.com> wrote: > >> I am using sqlite3 database. >> How can I add foreign key between two tables. >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/56c957c9-6b03-4c19-9566-9a63cdbf8319%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/56c957c9-6b03-4c19-9566-9a63cdbf8319%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CACczBUKyATKexddYKEMhKyg4SpywuyZ7uMxDK5HMXxadQV7vLg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CACczBUKyATKexddYKEMhKyg4SpywuyZ7uMxDK5HMXxadQV7vLg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHabpERhmoJGGRYJWxOee%2BWpKNQUpEn9ciBJ59AfJezRGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django 1.9.1/python3.4 install errors
pip unistall django pip install django 2016-01-09 19:26 GMT-03:00 Simon Charette : > Hi Nicholas, > > These warnings should be safe to ignore. > > See 1.9 release notes > <https://docs.djangoproject.com/en/1.9/releases/1.9/#syntaxerror-when-installing-django-setuptools-5-5-x> > for more details. > > Simon > > > Le samedi 9 janvier 2016 16:30:14 UTC-5, Nicholas Geovanis a écrit : >> >> Hi all - >> Received these messages when installing Django 1.9.1 with python 3.4 on >> Centos 7. Wondering if they are of concern, since pip stated "Succesfully >> installed Django" (see below, also apparently succesful import of django in >> python follows below): Thanks >> >> [root@localhost ~]# pip3.4 install Django==1.9.1 >> Downloading/unpacking Django==1.9.1 >> Downloading Django-1.9.1-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded >> Installing collected packages: Django >> *** Error compiling >> '/tmp/pip_build_root/Django/django/conf/app_template/apps.py'... >> File "/tmp/pip_build_root/Django/django/conf/app_template/apps.py", >> line 1 >> {{ unicode_literals }}from django.apps import AppConfig >> ^ >> SyntaxError: invalid syntax >> >> *** Error compiling >> '/tmp/pip_build_root/Django/django/conf/app_template/models.py'... >> File "/tmp/pip_build_root/Django/django/conf/app_template/models.py", >> line 1 >> {{ unicode_literals }}from django.db import models >> ^ >> SyntaxError: invalid syntax >> >> Successfully installed Django >> Cleaning up... >> [root@localhost ~]# exit >> logout >> [ngeo@localhost src]$ python3 >> Python 3.4.2 (default, Dec 20 2014, 13:53:33) >> [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import django >> >>> print(django.get_version()) >> 1.9.1 >> >>> >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b002fab6-9d62-45e0-8a69-a5a8a51d1711%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b002fab6-9d62-45e0-8a69-a5a8a51d1711%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHazCrW%3DnLN5HZO6UD3VMVx_hKY6Wvj46Qwqk0rDrFGCCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: How to install Django on Windows article
Install python and add to path In cmd > pip install django. -Mensaje original- De: Carlos Andre Enviado: 29/01/2016 11:36 Para: django-users@googlegroups.com Asunto: Re: How to install Django on Windows article 1º download a version django (admint who python intaled); 2º unzip the django in your prefer path; 3º acess that path with cmd; 4º insert: setup.py install 2016-01-29 8:29 GMT-03:00 Rafael E. Ferrero : Never occur to me in Win8.1 ... why not install VirtualBox with an Ubuntu or other flavor of linux ? (if you need your windows) It's more easy for django and... it's recommended. Cheers !! Rafael E. Ferrero 2016-01-29 3:17 GMT-03:00 Руслан Ломагин : Hello, i have some issues that is occured while i was installing Django on my Windows 10. I'm new in using Django framework and also python on windows. To the article: Install Python I installed python as it was said: Downloaded python 3.5.1 for windows. Installed using option: create system variable. Checked version. Install virtualenv and virtualenvwrapper¶ Then i tried to instal virtualenv and virtualenvwrapper as it is said: pip install virtualenvwrapper-winbut the command freezes (or hangs) widows command prompt.After some search i found "python -m pip install virtualenv" and "python -m pip install virtualenvwrapper" that worked well.And now i'm stuck.mkvirtualenv myproject is not working.As i investigated: mkvirtualenv is a batch file, that executes virtualenv.exe in python's Script folder.This executable file hangs my command prompt, every time i type mkvirtualenv myproject or executing "virtualenv.exe myproject" directly.I don't know what to do, but what i do know - those pip.exe, virtualenv.exe and other .exe files in %PYTHONHOME%\Scripts are hanging my commandprompt.If Anyone has any ideas with my problem, please help me. -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b86b3abf-7c66-414b-9bff-691a54868d88%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJJc_8X-FSzetbzvx4M%2BK6pbwDHe%2B4_u6%3DL2BPZqpckGvFU9LA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA8yBMyrnC9rxOK9z-xv_DZGWTAR2wYBPq2x9A9%3DynDVuafX4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/56a5.56a78c0a.25b37.0e75%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
Re: PROBLEM 2
Hi edit your urls.py and add polls view inside El mar., 4 dic. 2018 a las 8:44, David Figueroa (< davidfigueroalaf...@gmail.com>) escribió: > > > Em segunda-feira, 3 de dezembro de 2018 21:30:40 UTC-3, David Figueroa > escreveu: >> >> in the process of creating my first views I am having this problem when I >> will check if everything is working well on the page >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6ac1daf3-59d8-4971-ba15-5214ed3cfbb7%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/6ac1daf3-59d8-4971-ba15-5214ed3cfbb7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHZVoXed%2BKKaQGFU-fksaCSxFTVxfB2vgXZFD09p36svhA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: django.db.models.signals
Hi pre_save, post_save solved this problem with created flag [1] # If you check only update in you if not created: pass [1] https://docs.djangoproject.com/en/dev/ref/signals/#post-save El sáb., 19 sept. 2020 a las 12:14, Mohammad hassan Tahery (< mo.ha.ta.1.2.1.mo.ha...@gmail.com>) escribió: > It would be cool to have pre_update and post_update in set of built-in > signals. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/df4b7a32-4c81-4d37-aeca-bc12dfd79602n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/df4b7a32-4c81-4d37-aeca-bc12dfd79602n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Ricardo Daniel Quiroga -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHasnZPiXT2vENkZsOWoM9dUJXYcmBtD-6_21NLuDAM4aQ%40mail.gmail.com.