Re: Display Many to Many Field in Django admin site

2018-04-03 Thread carlos
s 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. >

Re: New Question How to Let a user upload a Video and then show the content on Templates in Django?

2018-03-12 Thread carlos
ec7-b61a689006f7%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: autocomplete

2018-02-26 Thread carlos
ribe 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:

Re: soy nuevo como inicio Django para desarollar con oracle

2018-02-24 Thread carlos
google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAJ8iCyMDS93Z84DamCvPy8Vyw70jPdLCQ8oma%3DahsS4hBJ6Q9A% > 40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAJ8iCyMDS93Z84DamCvPy8Vyw70jPdLCQ

Re: How to fetch data from sql server and display on django web pages

2018-02-11 Thread carlos
t 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/AM5P193MB00835F3E9901536A3FF319C28CF00%40AM5P193MB0083. > EURP193.PROD.OUTL

Re: Trying to deploy Django 2.0.2 (DigitalOcean)

2018-02-07 Thread carlos
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/d10625a1-f380-4ab2-8ec0-efa25aaea5b6%40googlegroups.com > <https://

Re: Django

2018-02-01 Thread carlos
at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/django-users/0e088428-2daa-4ce1-b089-95e30d129948%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/0e088428-2daa-4ce1-b

Re: Django

2018-02-01 Thread carlos
roups.google.com/d/ > msgid/django-users/0e088428-2daa-4ce1-b089-95e30d129948%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0e088428-2daa-4ce1-b089-95e30d129948%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d

Re: django-vue

2018-01-31 Thread carlos
google.com/d/msgid/django-users/93eb10cd-9a6a-4095-93ef-d8ede85bc0ce%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Gr

Re: putting together a simple calendar of events in Django

2018-01-30 Thread carlos
aS_OC5% > 2Bx%3DDB_RtRswnRs3nbQf8dgA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF%2BxBDVW-CvXVpTT8bqmmaS_OC5%2Bx%3DDB_RtRswnRs3nbQf8dgA%40mail.gmail.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. &g

Openings for software developers in São Paulo, Brazil

2018-01-12 Thread Carlos Ribas
Hello all, The Research, Innovation and Dissemination Center on Neuromathematics (RIDC NeuroMat) is offering scholarships for information technology professionals interested in being part of a breakthrough and innovative scientific project. It’s a FAPESP Technical Expertise Scholarship of

Re: Issue with Python 3.6 and Django 2.0 App Deployment on Shared Hosting

2017-12-25 Thread carlos
le.com/d/ > msgid/django-users/d38290f8-dd4e-4038-a958-9fed5b32fa34%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/d38290f8-dd4e-4038-a958-9fed5b32fa34%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.

Re: Admin adding images to blog via the admin section

2017-12-23 Thread carlos
://groups.google.com/d/msgid/django-users/95e25a48-45ff-4634-91f6-e82b7b17c2f7%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribed to the Google

Re: Failed to create a new django project

2017-12-07 Thread carlos
ise TypeError, "pop expected at most 2 arguments, got "\ > > > > > > -- > 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 > em

Re: Error on execute migration (create index) when set db_name with quoted string

2017-12-02 Thread Carlos Leite
edium.com/@cadu_leite> | +CarlosLeite <https://plus.google.com/u/0/+CarlosLeite> | http://people.python.org.br/ On Wed, Nov 29, 2017 at 3:59 PM, Carlos Leite <cadu...@gmail.com> wrote: > > Sure, > its great to help the project. > thanks for your attention. > > tonight (bra

Re: Require an inventory model tutorial in Django

2017-12-01 Thread carlos
legroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-29 Thread Carlos Leite
ite> | @cadu_leite <https://medium.com/@cadu_leite> | +CarlosLeite <https://plus.google.com/u/0/+CarlosLeite> | http://people.python.org.br/ On Tue, Nov 28, 2017 at 6:30 PM, Simon Charette <charett...@gmail.com> wrote: > Hello Carlos, > > Thank you for taking the ti

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-28 Thread Carlos Leite
r.py", line 244, in apply_migration state = migration.apply(state, schema_editor) File "/Users/cadu/Envs/dj28792/src/django/django/db/backends/base/schema.py", line 93, in __exit__ self.execute(sql) File "/Users/cadu/Envs/dj28792/src/django/django/db/backends/base/schema.py", line 120, in execute cursor.execute(sql,

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-28 Thread Carlos Leite
0/+CarlosLeite> | http://people.python.org.br/ On Tue, Nov 28, 2017 at 9:25 AM, Carlos Leite <cadu...@gmail.com> wrote: > Thanks Simon, > > I tryied to find some issue related but found nothing. > > The ticket #28792 seems exactly the case ... > > I'll take a couple of

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-28 Thread Carlos Leite
Charette <charett...@gmail.com> wrote: > Hey Carlos, > > I believe the trailing quote truncation issue might be solved in the yet > to be released > 1.11.8[0][1] version. > > Could you confirm whether or not it's the case? You'll have to regenerate > your migration. >

Re: Error on execute migration (create index) when set db_name with quoted string

2017-11-27 Thread Carlos Leite
ver closed. ), ``` On Tuesday, November 28, 2017 at 2:01:56 AM UTC-2, Carlos Leite wrote: > > I was making some introspections on meta attributes from a Model class > jsut to check what changes when we set some attributes on Meta class and > etc... > > > TO check the Meta.db_na

Error on execute migration (create index) when set db_name with quoted string

2017-11-27 Thread Carlos Leite
I was making some introspections on meta attributes from a Model class jsut to check what changes when we set some attributes on Meta class and etc... TO check the Meta.db_name I read the docs and saw that I could use quoted strings as told .. " ... o prevent such transformations, use a

Re: Django 1.11 and PostgreSQL 10 compatibility

2017-10-19 Thread Carlos Augusto Machado
Hi, You can use 9.4, 9.5 and 10. Em qui, 19 de out de 2017 07:27, Edandweb escreveu: > Hi, > > I am developing a new application in Python and Django, for the database > we want to use the last version of PostgreSQL v10. > The django Documentation says in >

Re: django-leaflet installation exception

2017-09-08 Thread carlos
lt;https://groups.google.com/d/msgid/django-users/b8ac0a47-6426-4f29-9e88-9efc2bd7403e%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribe

The best way to use AMP of google with Django

2017-07-24 Thread carlos
1.11.x, any idea manual used thanx -- att. Carlos Rocha -- 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.co

Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread carlos
medium=email_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 recei

Re: Create Mobile App from Django Template

2017-07-18 Thread carlos
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:/

Re: How show id

2017-07-10 Thread carlos
cr...@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/ms > gid/django-users/5963DEC0.2010400%40infomed.sld.cu. > F

Re: Installing Django

2017-06-05 Thread Carlos Andre
pip install django==1.10 2017-06-05 13:59 GMT-03:00 Melvyn Sopacua : > On Monday 05 June 2017 06:44:13 Oladipupo Elegbede wrote: > > > For the Python prompt from CMD and do the following > > > > > > >>>import Django > > > >>>Django.VERSION > > > > 1) it's django not

Re: Please help me

2017-05-29 Thread Carlos Andre
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/ 2017-05-29 17:58 GMT-03:00 m712 - Developer : > You just made my day. > > On 05/29/2017 12:52 PM, Opeyemi Gabriel wrote: > > Django girls, am a guy > > On May 29, 2017 13:20, "Jani Tiainen"

Re: Please help two dependent list check boxes

2017-05-29 Thread carlos
b visit https://groups.google.com/d/ > msgid/django-users/6ce2a875-fe14-b76d-f8fe-4cd81b4b0d70%40gmail.com > <https://groups.google.com/d/msgid/django-users/6ce2a875-fe14-b76d-f8fe-4cd81b4b0d70%40gmail.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.googl

formfield_for_manytomany exclude

2017-05-29 Thread carlos
Hello, I am trying to exclude several categories from a m2m, but when I see the widget in my form all still appear, I put the code that I execute when I load the form, the id that I place are the categories that I do not want to appear def formfield_for_manytomany(self, db_field, request,

Re: Django MultipleChoiceField and Multiple Checkbox

2017-05-16 Thread carlos
93f8-4828-aad7-e242bd5831e7%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/69633374-93f8-4828-aad7-e242bd5831e7%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received th

Re: Django MultipleChoiceField

2017-05-16 Thread carlos
5b78-4862-b24b-305504cd695e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0c6cd431-5b78-4862-b24b-305504cd695e%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You recei

Re: Displaying Categories / Subcategories (Tango with Django Example)

2017-05-12 Thread carlos
n on the web visit https://groups.google.com/d/ > msgid/django-users/96558026-ac69-4c7c-bb98-cee43dddee82%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/96558026-ac69-4c7c-bb98-cee43dddee82%40googlegroups.com?utm_medium=email_source=footer> > . > > For mo

Re: php

2017-05-05 Thread carlos
f19f8b9dc51b%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Ignoring empty forms in a formset

2017-04-15 Thread Carlos Jordán
its works El jueves, 26 de abril de 2012, 8:25:42 (UTC+2), Martin Tiršel escribió: > > Thanks, form.has_changed() seems to be the way. But I don't understand the > empty_permitted attribute, it is usable only with ModelForm? I am using the > formset only for mass form processing not for

Re: migrations error

2017-03-20 Thread carlos
cc7f68%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- att. Carlos Rocha -- 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, se

migrations error

2017-03-20 Thread carlos
Hi all, When I install my first third party application in my model I create my initial migration and everything okay, after that probe I uninstall that application and create another new migration number 2, but it throws me an error because there is no longer the application in both the Setting

Re: Advice: count hits/pageview for high traffic website

2017-03-08 Thread carlos
something, but why not Google Analytics? > > On 3/8/17, ludovic coues <cou...@gmail.com> wrote: > > Have you looked at an analytics solution like piwik ? > > > > 2017-03-08 6:40 GMT+01:00 carlos <crocha09...@gmail.com>: > >> Daniel, no i say i used dja

Re: Advice: count hits/pageview for high traffic website

2017-03-07 Thread carlos
app like django-hitcount but for site very high traffic Or some idea to do that? cheers On Tue, Mar 7, 2017 at 6:04 PM, Daniel Bess <db...@endocrypt.com> wrote: > Hi Carlos, > > You email is a little unclear. Are you suggesting I should not use Django > for a web backen

Advice: count hits/pageview for high traffic website

2017-03-07 Thread carlos
Hi, i try used django-hitcount but really not for website high traffic any advice for count visits/hits page for 60k or 100k traffic for day thank any idea, link or whatever helps -- att. Carlos Rocha -- You received this message because you are subscribed to the Google Groups "Django

Re: Need help in posting Multi select option from HTML to MongoDB using Mongoengine

2017-03-07 Thread Carlos Andre
Vinay to this do the simple. The form interprets normally the models. Example: models.py from mongoengine import * class person(Document): name = StringField(max_length = 150) club = EmbeddedModelField(club) class club(Document): name = StringFiend(max_length = 150) form.py class

Re: Advice: django deploy vps error 502

2017-03-02 Thread carlos
n a while I was having a different problem with uwsgi, > which was taking me hours to solve, largely because of insufficient > documentation. After I switched to gunicorn I never looked back. > > Regards, > > Antonis > > Antonis Christofideshttp://djangodeployment.com > > &g

Re: Advice: django deploy vps error 502

2017-03-01 Thread carlos
lled, but I don't really know. Do you have > DEBUG = False? Does uwsgi write something in its log? Does the system write > something in the syslog? > > Regards, > > Antonis > > Antonis Christofideshttp://djangodeployment.com > > > On 02/28/2017 10:49 PM, carlo

Advice: django deploy vps error 502

2017-02-28 Thread carlos
the test the web site throws the error 502 ngixn I would appreciate it if someone gave me an idea or advice to configure better when there is high traffic or are doing ab test or another benchmarking test cheers -- att. Carlos Rocha -- You received this message because you are subscribed

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread carlos
thank Melvyn :) i understands right now! On Mon, Feb 20, 2017 at 9:24 AM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > On Monday 20 February 2017 08:39:07 carlos wrote: > > > Hi, Melvyn yes i use similar but for the question is > > > the best way? > >

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread carlos
Sopacua <m.r.sopa...@gmail.com> wrote: > On Sunday 19 February 2017 23:00:54 carlos wrote: > > > > > class Category(...): > > > name = CharField() > > > slug = SlugField(.) > > > > > > class MyModel(modesl.Model): >

any idea for get_absolute_url in m2m categories

2017-02-19 Thread carlos
bute 'slug' what is the best way to do this? any idea? Cheers -- att. Carlos Rocha -- 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 d

Re: Display the __str__ or __unicode__ of an objet on deletion of one of its ManyToManyField

2016-12-02 Thread Carlos Andre
def __unicode__(self): return "{0} [{1}]".format(self.titre[:200], self.id).__str__ def __unicode__(self): return self.intitule.__str__ 2016-12-02 10:03 GMT-03:00 Jean-Baptiste Pressac : > Hello, > On Django 1.8 + Python 2.7.11, I have declared in Django

Method must be called with Class instance

2016-10-24 Thread Carlos García
Hi, I'm creating a app which do a request to a API and the result is showing on a web page. My code is this: Models.py from django.db import models from django.template import Template, Context from django.http import HttpResponse import requests, json class HotelService(models.Model):

Re: No module named MySQLdb

2016-09-20 Thread Carlos Andre
1º install setuptools; 2º install PyMySQL; 1º --> https://pypi.python.org/pypi/setuptools 2º --> https://github.com/PyMySQL/PyMySQL 2016-09-20 11:01 GMT-03:00 fossildoc : > I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and > MySQL server 5.7.15.

Binding a ModelForm to an existing instance

2016-09-04 Thread Carlos Mermingas
I have a ModelForm: class ArticleForm(forms.ModelForm): class Meta: model = Article fields = ['url',] The Article model has a url field which is unique. I want users to enter a URL. If the Article already exists, it gets reused. Otherwise, a new instance is created.

Re: Problem installing fixtures

2016-02-11 Thread Carlos Leite
Are you moving the content of your old database to a new one ? Sorry, if I answer the obvious, but when you move, it seems that the IDs of your content type has change. And the DATABASE point you an error "violates foreign key constraint" auth permission has a generic relation were a

Re: manage.py --keepdb VS DataMigration as Initial Data

2016-02-11 Thread Carlos Leite
e running into the same problem reported in > https://code.djangoproject.com/ticket/25251#comment:3 > > > On Thursday, February 11, 2016 at 1:16:20 PM UTC-5, Carlos Leite wrote: >> >> Hi there, >> >> I'm running a Django==1.8 app >> I read in the docs [1], to consider d

manage.py --keepdb VS DataMigration as Initial Data

2016-02-11 Thread Carlos Leite
Hi there, I'm running a Django==1.8 app I read in the docs [1], to consider doing a data migration to load initial data on db, since initial fixture is consider deprecated since 1.7. Well, to keep my app up-to-date I choose to load "initial data" trough a data migration. My problem, SEEMS to

Re: How to install Django on Windows article

2016-01-29 Thread Carlos Andre
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

Re: Does anyone have good results connecting Django to Mysql on localhost and windows 7?, me not.

2016-01-25 Thread Carlos Andre
install setuptools. install pymysql and the your python version! 2016-01-25 14:17 GMT-02:00 Gonzalo V : > Wich module did you use? > please help > thanks!! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: django project exe

2016-01-22 Thread Carlos Andre
path! 2016-01-22 10:53 GMT-02:00 Rafael E. Ferrero <rafael.ferr...@gmail.com>: > Carlos, and why not install nginx or something in localhost? maybe you can > do a little app to start or stop the service to connect or disconnect your > application. > > if is only one mac

django project exe

2016-01-22 Thread Carlos Andre
Hi to all, i want do my project in django, run as exe in localhost. The motivation, the client who want this! Thanks to all! -- 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

Re: Video Erich Holschercom on django under the hood ?

2015-12-04 Thread Carlos Leite
deos from this year's conference: > https://opbeat.com/events/duth/ > > > On Thursday, December 3, 2015 at 1:34:40 PM UTC-5, Carlos Leite wrote: >> >> Hello everyone, i'm brazilian django user, not so used to wirte here >> >> last weekend I watched a

Video Erich Holschercom on django under the hood ?

2015-12-03 Thread Carlos Leite
Hello everyone, i'm brazilian django user, not so used to wirte here last weekend I watched a video about DJango and Documentations Systems with Erick Holscher at the Django Under the hood conference. But it seems the video just desapear. Anyone has a link ? thanks in advanced

Re: how upload and display image on page using Django

2015-11-20 Thread Carlos Andre
To this you have give permition in path where the image are. In Linux use chmod. Em 20/11/2015 18:32, "Daniel Roseman" escreveu: > On Friday, 20 November 2015 19:45:31 UTC, Mayur Kakade wrote: >> >> I am new in Django I have some problem in django ... I am trying to >>

Re: garantir acesso a usuários somente para seus dados

2015-10-03 Thread Carlos Andre
And i have a soluction, this mensage was after. Thanks! Em 03/10/2015 12:55, "Helio Meira Lins" <helio...@gmail.com> escreveu: > Carlos Andre, > try to get help in the Brazilian Django group [1], and remember to inform > what you've tried. > > [1] https://groups.

garantir acesso a usuários somente para seus dados

2015-09-27 Thread Carlos Andre
Hi, im with a question, want permission to user in only your data. With doc i trying but only access to all dates. Can help? thanks. ps.: if can help to add new user, use the functions to this. I use django 1.3 version and is necessari. thaks! -- You received this message because you are

Crente usar o django 1.3

2015-09-26 Thread Carlos Andre
Hi to all, i want creat a new user in any time without admin interface, i dont know use the functions from User modules. Thanks to help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: ManyToMany relationship

2015-08-23 Thread Carlos A. Carnero Delgado
ms. It is documented, BTW. HTH, Carlos. -- 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 thi

Re: Using django as a socket server and not HTTP server

2015-08-05 Thread Carlos Andre
have a framework to work like this, twistter 2015-08-05 14:03 GMT-03:00 Javier Guerra Giraldez : > On Wed, Aug 5, 2015 at 10:14 AM, Idan Shimon wrote: > > Hi i am interested to setup my own socket protocol against a peripheral > > device > > The socket

Re: Label in Charfield

2015-07-20 Thread Carlos Andre
campo = forms.Charfield(max_lenght = 5, widget=(attr={'class':classe_css})) 2015-07-20 10:25 GMT-03:00 Ayush Jha : > Create a widget for the CharField FormField > > http://stackoverflow.com/questions/4707192/django-how-to-build-a-custom-form-widget > > -- > You received this

Re: Values from class to class

2015-07-07 Thread Carlos Andre
I want copy some values to other fields in other table! 2015-07-07 19:34 GMT-03:00 Carlos Andre <eucan...@gmail.com>: > i trying use thats solutions, in real yet continuos the problem. > The value, when are to use in other class, return to defaut value without > get the v

Re: Values from class to class

2015-07-07 Thread Carlos Andre
i trying use thats solutions, in real yet continuos the problem. The value, when are to use in other class, return to defaut value without get the value who i send in the field. 2015-07-07 15:42 GMT-03:00 James Schneider <jrschneide...@gmail.com>: > On Tue, Jul 7, 2015 at 10:59 AM, Car

Re: Values from class to class

2015-07-07 Thread Carlos Andre
= p.qtdade ) 2015-07-07 4:08 GMT-03:00 James Schneider <jrschneide...@gmail.com>: > Can you give a simple example or analogy of what you are trying to do? > > -James > On Jul 6, 2015 5:29 PM, "Carlos Andre" <eucan...@gmail.com> wrote: > >> Hello to all , I

Values from class to class

2015-07-06 Thread Carlos Andre
Hello to all , I need to solve a problem. I have two classes of which have to use , in the second class, the first coming values. How to do this? Thanks for listening! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Búsquedas en una aplicacion

2015-07-05 Thread Carlos Alonso Turner Benites
Buen día, me podrían dar una idea sobre como seria la forma mas adecuada para búsquedas en una aplicación. -- 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

Re: django unique email id model

2015-06-27 Thread Carlos Arturo Sanchez Rivera
class Meta: unique_together = ('email', 'other') Can use unique_together El sábado, 27 de junio de 2015, 6:47:36 (UTC-5), Arindam sarkar escribió: > > i am just starting with django. I need create a site with signup/sign in . > i want user to sign up by email id . how do i proced ? > >

Re: Add multiple objects of same model at the same time in admin

2015-06-15 Thread carlos
= ModelB extra = 1 class ModelAAdmin(admin.ModelAdmin): inlines = [ModelBInline] admin.site.register(ModelA, ModelAAdmin) Cheers On Sun, Jun 14, 2015 at 1:08 AM, Carlos Arturo Sanchez Rivera < ing.c...@gmail.com> wrote: > It is easier with decorators > > @admin.re

Re: Running DJango with uWSGI with a user that has sudo access?

2015-06-14 Thread Carlos A. Carnero Delgado
ink that in a production settings you should go for privilege separation as far as possible. Besides, you could always host more than one service in the same box with different credentials quite nicely. HTH, Carlos. -- You received this message because you are subscribed to the Google Groups "Djan

Re: Add multiple objects of same model at the same time in admin

2015-06-14 Thread Carlos Arturo Sanchez Rivera
It is easier with decorators @admin.register(Transfer) class TransferAdmin(admin.ModelAdmin): pass El sábado, 13 de junio de 2015, 4:28:38 (UTC-5), Robin Lery escribió: > > I have a model to upload pictures: > > models.py: > > >> class Snap(models.Model): >> image =

Re: Help with customizing Django authentication

2015-06-02 Thread Carlos Ribas
Hello Carl, I really appreciate your comments and I agree with you. I'll put here soon the code I'm writing, maybe this can be helpful for others too. Thanks! Em sexta-feira, 29 de maio de 2015 18:53:25 UTC-3, Carl Meyer escreveu: > > Hello Carlos, > > On 05/29/2015 03:19 PM,

Re: Help with customizing Django authentication

2015-05-29 Thread Carlos Ribas
2015 12:54:59 UTC-3, Carlos Ribas escreveu: > > Hello All, > > I am currently extending the existing User model to store additional > information. So, basically I have: > > # models.py > class Person(models.Model): > user = models.OneToOneField(User, verbose_na

Help with customizing Django authentication

2015-05-27 Thread Carlos Ribas
Hello All, I am currently extending the existing User model to store additional information. So, basically I have: # models.py class Person(models.Model): user = models.OneToOneField(User, verbose_name=_('User')) zipcode = models.CharField(_('Zip Code'), max_length=9, blank=True,

Re: best way change template base my app

2015-05-14 Thread carlos
tends base %} > > if you need it on every template maybe you should use a context processor > to define your base variable. > > 2015-05-13 15:11 GMT-03:00 carlos <crocha09...@gmail.com>: > >> Hi, is posible change my base template with if tag >> example: >>

best way change template base my app

2015-05-13 Thread carlos
Hi, is posible change my base template with if tag example: {% if request.session.type = '1' %} {% extends "base.html"%} {% else %} {% extends "base_other.html"%} {%endif%} i have a error like that TemplateSyntaxError at /monito/cult/ Invalid block tag: 'endif' will to do change the

Re: uWsgi not seeing javascript

2015-04-21 Thread Carlos Aguilar
d 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

Re: Read a csv file and save data in postgresql

2015-02-24 Thread carlos
or maybe used this app, in the admin https://github.com/bmihelac/django-import-export Cheers On Tue, Feb 24, 2015 at 7:57 PM, Kelvin Wong wrote: > Looking at your code, maybe this one is better > > https://pypi.python.org/pypi/unicodecsv/0.9.4 > > This thing will make a

Re: Real time and Django - approaches

2015-02-20 Thread Carlos Aguilar
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/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a5923d8e-54a4-46ab-8df0-fdbb25

help with this show data in template

2015-02-12 Thread carlos
Hi, i don't know show my data in template ok explain my models models.py class Country(..): name = charfield... def __unicode__(..) return self.name class Gender(..): name = charfield... def __unicode__(..) return self.name class Player(..): country =

Re: Django: How to customize the admin form for specific model

2015-02-03 Thread carlos
Hi, in addition Collin answer you need use sorl-thumbnail in show picture in admin http://sorl-thumbnail.readthedocs.org/en/latest/examples.html#admin-examples Cheers On Tue, Jan 27, 2015 at 2:11 PM, Collin Anderson wrote: > Hi, > > You could have the images be inline: >

Re: Django web hosts in Canada

2015-01-30 Thread Carlos Carcamo
Why don't you try Digitalocean? Take a look at those articles: https://www.digitalocean.com/community/tutorials/how-to-use-the-django-one-click-install-image https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn If you want $10

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread Carlos Andre
install PyMySQL, after create a user e a databases in mysql terminal; e.g:1º)create user 'root'@'localhost' identified by 'fish1777'; 2º) create database Mydb; 3º) grant all privileges on Mydb.* to 'root'@'localhost' identified by 'fish1777'; use syncdb. 2015-01-25 6:04 GMT-02:00 olek.russ

Re: Using jquery ajax POST method with django

2015-01-21 Thread carlos
if you comment middleware csrf this is a risk security problem in your app maybe you need read this part of documentation https://docs.djangoproject.com/en/1.7/ref/contrib/csrf/#ajax Cheers On Sat, Jan 17, 2015 at 10:44 PM, Hossein Rashnoo wrote: > I correct my code and

Re: [ANNOUNCE] Django 1.8 alpha 1 released

2015-01-21 Thread carlos
Fabio yes i see https://docs.djangoproject.com/en/dev/releases/1.8/#management-commands - inspectdb now introspects database views on all database backends. In previous versions, only tables (not views)

Re: trouble initializing the website

2015-01-16 Thread Carlos Andre
And you have, after all, create a aplication with command: manage,py startapp [name your app] Em 16/01/2015 08:56, "Nicky Setia" escreveu: > Hi, > I used Django to create my personal webpage. The tutorial on your homepage > was very helpful and easy to follow. > I have my

Re: trouble initializing the website

2015-01-16 Thread Carlos Andre
Your first step are configure settings.py in databases, you heve to create a conetion. Secund step, syncdb will go create the struct databases. And finally runserver will start your server. In browser use to admin: 127.0.0:8000/admin. That need loggin who you configure in syncdb. Em 16/01/2015

how to connect parse.com with parse-rest

2014-12-15 Thread Carlos Ons
I cannot connect to parse.com with parse-rest API. I have a virtualenv installed and when I try to connect to parse.com It is impossible. I made a basic app and the error is: ImportError at / No module named parse_rest.connection Request Method:GETRequest URL:http://127.0.0.1:8000/Django

any idea

2014-12-03 Thread carlos
Hello, I need help regarding an idea I need to do several projects in django say than 3 project but one of them will have the table users profile User's other projects could use this table? another idea would be the same db for all projects? but this is optimal or not? example: (Project A): has

Re: how to save in inline form total sum

2014-10-28 Thread carlos
, self).save(*args, **kwargs) the only problem that is save correct total sum but a hit 2 o 3 time button save in the admin, not first time why? i don't know :( any idea Cheers On Fri, Oct 24, 2014 at 10:25 AM, carlos <crocha09...@gmail.com> wrote: > Ok, i try en modelA create the tot

pre-populate tabular inline in admin

2014-10-27 Thread carlos
Hi, i need pre-populete tabular inline in admin what is the best ways example class Options(models.Model): name = CharField(...) class ModelA(models.Model): option = FK(Options) field_1 = IntegerField() field_2 = IntegerField() field_3 = CharField() field_4 =

Re: how to save in inline form total sum

2014-10-24 Thread carlos
Ok, i try en modelA create the total, thank for idea Cheers On Fri, Oct 24, 2014 at 6:34 AM, Collin Anderson wrote: > Hello, > > >> ModelB in inline >> choice men women >> option1 6 4 >> option2 1

Re: how to save in inline form total sum

2014-10-23 Thread carlos
Hi +Collin the idea is sum all data for example de model is class ModelB(models.Model): choice = models.Integerfield(choices='CHOICE_TYPE') men = models.IntegerField() women = models.IntegerField() total_men = integerField(editable=False) total_women =

<    1   2   3   4   5   6   >