change user creation form shown in Django admin

2022-01-07 Thread Anil Felipe Duggirala
hello, I am using a custom user model. I have created a form that includes an extra field: ## /users/forms.py class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = CustomUser fields = UserCreationForm.Meta.fields + ('phoneno',) I am using this

Re: are migrations the same regardless of database type?

2021-12-29 Thread Anil Felipe Duggirala
Thanks to all for your replies. Using the "sqlmigrate" command, as far as I can see, there are no differences between database types. I asked this question initially because I was unable to set up postgresql locally. I have solved those issues now and will follow your advice on using the same d

are migrations the same regardless of database type?

2021-12-28 Thread Anil Felipe Duggirala
hello, I running an app locally using an SQlite database (I have not been able to set up postgresql locally). I am running the same app in Heroku, using Postgresql. If I run "makemigrations" locally, then push those migrations to Heroku (which is using postgresql), will those migrations be app

Re: help

2021-11-01 Thread Anil Felipe Duggirala
On Wed, Oct 27, 2021, at 12:50 AM, waqar khan wrote: > pip uninstall django Your answer is not worth the electricity it is written on Waqar. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: Invalid parameter: redirect_uri

2021-10-12 Thread Anil Felipe Duggirala
On Mon, Oct 11, 2021, at 5:40 PM, Ammon Quackenbush wrote: > I can set the logout redirect url successfully with LOGOUT_REDIRECT_URL > in my project's settings.py, but I still get this error when I try to > log in. > > On Thursday, October 7, 2021 at 3:54:24 PM UTC-6 Ammon Quackenbush wrote: >> I

Re: DateTime widget in default CreateView form

2021-10-08 Thread Anil Felipe Duggirala
On Fri, Oct 8, 2021, at 10:57 AM, Iyanuoluwa Loko wrote: > The date-time has to accept a date, and if you input the date in the > textbox in the accepted django format, it will work fine. To have the > calendar icon, it is a widget, and you ycan call it by editing the HTML > input type, or addin

Re: DateTime widget in default CreateView form

2021-10-08 Thread Anil Felipe Duggirala
On Fri, Oct 8, 2021, at 8:41 AM, MR INDIA wrote: > Answer to this query on stack overflow > > Raw link: > https://stackoverflow.com/questions/27321692/override-a-django-generic-class-based-view-widget

Re: DateTime widget in default CreateView form

2021-10-07 Thread Anil Felipe Duggirala
On Thu, Oct 7, 2021, at 5:50 PM, sum abiut wrote: > You can use modelform. > > in your form.py you can do something like this > > # setup date picker start > class DateInput(forms.DateInput): > input_type = 'date' > > class Formname(forms.ModelForm): > class Meta: >

DateTime widget in default CreateView form

2021-10-07 Thread Anil Felipe Duggirala
hello, I have tried to find an answer to this question online, with no clear response. I have created a simple class based CreateView for a model that has a DateTime attribute. Simply rendering the form using the {{ form.as_p }} tag in the template associated to the aforementioned view does not g

Re: Using Python Libraries in Django

2021-04-23 Thread felipe herrera
gt; > > > On Thu, Apr 22, 2021 at 2:45 PM felipe herrera wrote: > >> Awesome! Thank you . >> >> Andrés >> >> El jue, 22 de abr. de 2021 a la(s) 14:52, Kasper Laudrup ( >> lau...@stacktrace.dk) escribió: >> >>> On 22/04/2021 18

Re: Using Python Libraries in Django

2021-04-22 Thread felipe herrera
Awesome! Thank you . Andrés El jue, 22 de abr. de 2021 a la(s) 14:52, Kasper Laudrup ( laud...@stacktrace.dk) escribió: > On 22/04/2021 18.48, felipe herrera wrote: > > 1) Can we use any python libraries in Django ( such as PDFplumber, > > pandas, etc) ? > > Yes. > >

Re: my first view

2019-10-08 Thread Felipe Gregório USA
how i do this? -- 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://group

my first view

2019-10-08 Thread Felipe Gregório USA
Please tell me what is wrong with my first view https://github.com/Fgregorio1/ftgtraderexample.git -- 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+u

Iterable object and Django StreamingHttpResponse

2018-01-03 Thread Felipe Buccioni
Hi I want to connect to internal http services with django and I need to buffer the output the http response of those services because some contents are very large. I am using python 3.6, django 2.0, `http.client` and the following code: class HTTPStreamIterAndClose(): def __init_

postgres library in django using jython

2017-11-02 Thread Felipe Salazar
Hi all I a python developer that I don't use Django very frequently. I am facing a struggle these days because I am development APIs in Django but to deploy the project I want to pack the project in a war file, so that is the reason that I am using Jython. However, I am getting errors when I

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

2017-07-18 Thread Felipe Brunelli de Andrade
CONTROL-C. > > > On Tuesday, July 18, 2017 at 11:43:53 AM UTC-7, Felipe wrote: >> >> Try to debug in chrome just press F12 and go to network tab and see >> the times fot load content >> >> 2017-07-18 15:18 GMT-03:00 Kevin Yu : >> >>> I'v

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

2017-07-18 Thread Felipe Brunelli de Andrade
Try to debug in chrome just press F12 and go to network tab and see the times fot load content 2017-07-18 15:18 GMT-03:00 Kevin Yu : > I've eliminated the possibility of mysql performance issue by directly > running the query on the database. It's not network issue either since my > ping is j

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

2017-07-18 Thread Felipe Brunelli de Andrade
You need to see de CPU load in server. In your test you probably are using a local machine with no loading... but your produce server I dont know. You need to see in server the webserver too, try to run django-admin runserver :8000 and see if you have the same issue. But if you are just connectin

Re: OperationalError:no such table

2017-05-07 Thread Felipe Brunelli de Andrade
Just check if the table exists in database! 2017-05-07 7:54 GMT-03:00 hamza bouissi : > after I add new model and delete all other models and their migration > files I ran makemigrations followed by migrate command, Unfortunately, I > got OperationalError: no such table > > > >

Re: how to use generic_inlineformset_factory ?

2017-04-17 Thread Angel Felipe González Garcia
Hi Marcos , how are you? i would like to know about Generic Inline formset factory, i tried to acces to your dpaste code but it has expired, can you please provide other link or shar your explanation or code by this same way? regards El lunes, 8 de diciembre de 2008, 3:51:09 (UTC-4), Marco Lou

Issue whe migrate with relation between tables in different schemas

2017-01-06 Thread felipe . pereira . nitens
I'm working with Django 1.9.7 with Postgresql and I stuck in a problem with relations between tables in different schemas. The problem that I'm facing is that I have a table, for example, named *product, *which is in a schema named *dataflex *and another table named *client_product_sale_stc *

Re: Complex query, queryset.query.alias_map and query changes

2016-09-23 Thread Felipe Prenholato
have updates. Thx Tim. Felipe Prenholato. Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc LinkedIn: http://br.linkedin.com/in/felipeprenholato/ 2016-09-23 13:36 GMT-03:00 Tim Graham : > Not sure, this

Complex query, queryset.query.alias_map and query changes

2016-09-23 Thread Felipe Prenholato
^* *HINT: Perhaps you meant to reference the table alias "u9".* The great question is: Is possible to do the query with dynamic aliases to be used in concat string? Maybe the `tables` argument to extra? I not saw much doc about it :\. My Django version is 1.6.x, no

Re: Django M2M with Oracle database FieldDoesNotExist error

2016-06-10 Thread Felipe Horta
Hi everyone, I'm following this thread and I'm having the same error. Im running a postgis db, and despite the biginteger pk, my problem is the same. Could you solve it? Thanks! On Monday, August 3, 2015 at 11:16:12 PM UTC-6, mohse...@gmail.com wrote: > > i found that even trying to access the

CKEditor

2016-04-11 Thread Ricardo Felipe Ríos Higueras
Buenas. Estoy usando ckeditor en django. Todo bien, lo instalé bien y por parte del admin funciona excelente. Lo que quiero es llevar esa herramienta a un form. Crear un formulario que contenga ckeditor. Espero me entiendan y puedan ayudarme, ya que, he intentado de muchas formas y nada me re

Help me! Error in Django. Migrate mysql, datetime and more.

2016-03-28 Thread Ricardo Felipe Ríos Higueras
Hi. I am learning Django, but, I have major problems because I don´t know much about python/Django. Here this problem: *problem one : the databases backend does not accept 0 as a ' valueError: The databases backend does not accept 0 as value for AutoField.* *problem two: TypeError: int() arg

Re: Integrating RabbitMQ with Django

2015-09-17 Thread Felipe Arenhardt Tomaz
I update my gist and put 2 other files [1] An init script (/etc/init.d/script) and an Django Command. [1] https://gist.github.com/Arenhardt/8ac7e7667134c28eceed -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Thu, Sep 17, 2015 at 10:57 AM, Erol Merdanović

Re: Integrating RabbitMQ with Django

2015-09-17 Thread Felipe Arenhardt Tomaz
I don't like to put the commands on supervisor. You can create an init script. -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Thu, Sep 17, 2015 at 4:48 AM, Erol Merdanović wrote: > @Felipe > > Yes, I use very similar approach. Thank you f

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Felipe Arenhardt Tomaz
I create and use this class to manipulate the queues https://gist.github.com/Arenhardt/8ac7e7667134c28eceed -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Wed, Sep 16, 2015 at 2:01 PM, Erol Merdanović wrote: > @Tom > > Yes, it was also think

Re: Integrating RabbitMQ with Django

2015-09-16 Thread Felipe Arenhardt Tomaz
For manual manipulation recommend Pika[1] [1] https://pypi.python.org/pypi/pika -- Felipe Arenhardt Tomaz Systems Developer Curitiba - Paraná www.felipetomaz.com On Wed, Sep 16, 2015 at 10:53 AM, Erol Merdanović wrote: > @Vijay > > Yes, source of the messages is outside of t

Re: How to create a side menu with the urls of each step

2015-09-05 Thread Felipe Brunelli de Andrade
Man, you need to treat this form step by step as a single form controlled by javascript. You will find several examples on google --- Felipe Brunelli de Andrade http://www.fandrade.com.br/ --- Cel: (16) 98121-5290 Skype

Re: How to pass a queryset for each different field Admin Inlines

2015-05-27 Thread Felipe
estions/5329586/django-modelchoicefield-filtering-query-set-and-setting-default-value-as-an-obj > > On Wed, May 27, 2015 at 9:41 AM, Felipe > > wrote: > >> Hello, Filipe Ximenes, in fact it is not so difficult. To avoid using >> ajax, what I do is initialize each form inli

Re: How to pass a queryset for each different field Admin Inlines

2015-05-27 Thread Felipe
Hello, Filipe Ximenes, in fact it is not so difficult. To avoid using ajax, what I do is initialize each form inline with a default value. Few ATTRIBUTES has verified and initialize no possibility that the fronentd they can edit. All right up here, but the problem is that for each attribute req

Re: How to pass a queryset for each different field Admin Inlines

2015-05-26 Thread Felipe
Someone can help me ?, he took days trying to fix this and nothing to get it, if I could just iterate a QuerySet each model choice of the form. The only thing achieved is that a queryset applies to all forms inline, but I need a different one for each inline. def formfield_for_foreignkey(sel

How to pass a queryset for each different field Admin Inlines

2015-05-26 Thread Felipe
Pretend to have in the Django admin, 4 forms inlines, Each with a pair of fields choices, "Attributes" and "Value Option". We have the first pair, which initialize the field one with a value, for example color and other field you must have a queryset the choices.

Zinnia models migration error: InvalidBasesError: Cannot resolve bases for []

2015-03-05 Thread Felipe
I'm having a little trouble integrating a zinnia app into my current application. (project)username@computername:~/project/application$ python manage.py migrate Operations to perform: Synchronize unmigrated apps: bootstrap3 Apply all migrations: project, activity, zinnia, sessions, auth, badg

Re: backend para MySQL

2015-02-12 Thread Felipe Faraggi
No windows eu acredito que eu tive que instalar o visual studio antes de usar esse comando. http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat On Thursday, February 12, 2015 at 2:13:01 PM UTC+1, Ulisses Cruz wrote: > > Olá > Eu estou a tentar ligar o meu projeto Djan

Re: Thinking about EAV database model for flexibility. How (in)compatible is it with the django model?

2014-12-23 Thread Felipe Faraggi
storing sessions in > Mysql (say) on a heavily loaded site is almost always a bad idea in any > case. > > -j > > > On Dec 22, 2014, at 2:27 AM, Felipe Faraggi > wrote: > > I'd like to 're-open' this question to ask another (maybe) short one:

Re: Thinking about EAV database model for flexibility. How (in)compatible is it with the django model?

2014-12-22 Thread Felipe Faraggi
system would be obsolete. Am I wrong in this line of thinking? thanks in advance! On Tuesday, December 16, 2014 11:24:12 AM UTC+1, Felipe Faraggi wrote: > > Thanks for your responses Jamie and Erik, > > We've since reconsidered and will in fact, be creating a standard > relationa

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-12-19 Thread Felipe Serrano
Same problem, your Fix works great!... Thanks, using MacOS 10.7, Django 1.7, DjanogCMS3, Python 3.4.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-use

Re: Thinking about EAV database model for flexibility. How (in)compatible is it with the django model?

2014-12-16 Thread Felipe Faraggi
e it. > > -j > > [1] not necessarily in currency, but that can certainly happen as well. > > -- > Sent from a phone, please excuse typos and terseness. > > On Dec 15, 2014, at 5:42 AM, Felipe Faraggi > wrote: > > Hello everybody. > > I am very new to djan

Thinking about EAV database model for flexibility. How (in)compatible is it with the django model?

2014-12-15 Thread Felipe Faraggi
Hello everybody. I am very new to django and I come from a wordpress background (yes, yes I know) and I really like their wp_*meta model. After a little digging I discovered this is called the Entity-attribute-value model or EAV

Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Felipe Bessa Coelho
2014-03-06 11:45 GMT-03:00 Jack Yan : > in the tutorial and section "Authenticating Users": > https://docs.djangoproject.com/en/1.6/topics/auth/default/ > > where can I put code: > > from django.contrib.auth import authenticateuser = > authenticate(username='john', password='secret')if user is no

Re: Override grappelli js files

2014-02-25 Thread Felipe Bessa Coelho
2014-02-25 17:18 GMT-03:00 rush : > Hi, > > I'm using grappelli and I have two files in it I need to modify: > > admin/js/SelectBox.js > admin/js/SelectFilter2.js > > I thought it would be a good idea to put it into my app static directory: > > my_app/static/admin/js/SelectBox.js > my_app/static/a

Re: Translated URL's

2014-02-12 Thread Felipe Mesquita de Oliveira
ly because of the maintenance when adding a language, for example, that would make changing both translation files and all urls.py. Thanks for you time and attention, if an new solution raises, it would be great! Felipe On Friday, February 7, 2014 2:29:18 PM UTC-2, Felipe Mesquita de Oli

Re: Translated URL's

2014-02-10 Thread Felipe Mesquita de Oliveira
defined in user's session ('en'). Thanks in advance, Felipe On Friday, February 7, 2014 11:23:39 PM UTC-2, werefrog wrote: > > Hello, > > I don't know where you're trying the troublesome reverse but maybe the > following can help. > > > # m

Re: what are the files goes inside "contrib" folder?

2014-02-07 Thread Felipe Bessa Coelho
tructure, but at least for the contrib apps, you can find them in [1]. [1] https://docs.djangoproject.com/en/dev/ref/contrib/ -- Felipe -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Translated URL's

2014-02-07 Thread Felipe Mesquita de Oliveira
But, if the user with language set to '*es*' access '*/help/*' *(which is 'en')*, I wanted the user to be able to see the page, but I'm getting Http-404 error. Actually, even if the user (somehow) get to '/news/pagina-um', I wanted him to see the p

Re: Can't Install on Windows 8.1

2013-12-25 Thread Felipe Bessa Coelho
2013/12/25 Malik Rumi > Ok, everything went smoothly and beautifully as promised. I got successful > install messages for pip, distribute, virtualenv and django. So first, > thank you both very much. > > However, I seem to be stuck again. I am not sure how to get from my new > virtualenv to djang

Re: Where exactly in the django source code, the default permissions are created?

2013-12-20 Thread Felipe Coelho
2013/12/19 Fabio C. Barrionuevo da Luz > Hello guys, I'm trying to understand the inner workings of the permissions > django system. > > My question is where exactly in the django source code, the default > permissions are created? > Default permissions are created by django.contrib.auth.managem

Re: Problems with default settings.py file

2013-12-02 Thread Felipe Coelho
2013/12/2 Blake Adams > Hello I am a python noob going through the getttingstarted with django > tutorial. > > For some reason When I start a new project, the default settings.py file > is missing a lot of default settings (Admin, Media, Some of the Databse > info, Statis_file, Logging, etc.). I

Re: Group subscription management

2013-11-30 Thread Felipe Brunelli de Andrade
Go to groups.google.com and manage your groups! --- Felipe Brunelli de Andrade http://www.fandrade.com.br/ --- Cel: (16) 98121-5290 Skype: fbruandrade --- 2013/11/30 Steve Sawyer > I

Re: Email Templates and the full website URL

2013-11-29 Thread Felipe Coelho
2013/11/29 Joseph Mutumi > That could work but isn't it a bit insecure? I think it will be > susceptible to a header injection( > http://en.wikipedia.org/wiki/HTTP_header_injection). I would rather > create a setting with the domain name in settings.py and then call it from > the template or writ

Re: django tests

2013-11-23 Thread Felipe Coelho
2013/11/23 Harjot Mann > On Sat, Nov 23, 2013 at 2:49 PM, Simone Dalla wrote: > > the correct code should be > > > > ... > > self.userprofile = UserProfile.objects.filter(user_id =1) > > self.userprofile.update(first_name = "Harjot") > > ... > > self.assertEqual(self.userprofile.user_id, 1) > >

Re: Tango with Django Tutorials

2013-11-22 Thread Felipe Coelho
On Nov 22, 2013 7:01 AM, "Amimo Benja" wrote: > > Does anyone know how I can convert the entire Tango with Django Tutorials from online to an offline website that I can store and use on my hard disk? Please help I desperately need to use this site while am offline The book is open source, jus

Re: How to store site-wide application settings

2013-06-27 Thread Felipe Coelho
2013/6/27 rush > Hi, > > Could please somebody advice how to store application settings and allow > to edit them via admin panel? > Settings are used site-wide, not on per user basis. > > This settings have different types ( text, ineteger, images aka banners ) > therefore it looks impossible to

Re: captcha field django form designer, success html mail.

2013-06-19 Thread Felipe Coelho
2013/6/19 pradnya > ... > > ('django.forms.RegexField', _('Regex')), > > ('django.forms.FileField', _('File')), > > # ('captcha.fields.CaptchaField', _('Captcha')), > > The django-recaptcha field is called "ReCaptchaField", not just "CaptchaField" -- You received this message becau

Re: Add a file download link that work only after login

2013-06-05 Thread Felipe Coelho
2013/6/5 A T.Khan > I have already a Django setup running (you guessed it devstack), and it > works fine. I have done plenty of editing already. But now I want to add a > download button on a page, and by clicking to it, a file should be > downloaded. Seems simple enough, but right now what I hav

Re: Unable to access URL's query string using request.GET['next']

2013-05-24 Thread Felipe Coelho
2013/5/25 Amber Jain > Hello, > > I can't seem to access request.GET['next'] (from a URL with a query > string). Here's what I'm doing: > localhost:8000/dashboard/ points to dashboard() view but the dashboard() > view uses @login_required decorator. And so, if the user isn't logged in, > localhos

Re: Upload csv with utf-8

2013-04-29 Thread Felipe Prenholato
Take a look, can help: https://github.com/chronossc/django-data-importer Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/4/29 Hélio Mir

Re: check genre and insert

2013-04-27 Thread Felipe Coelho
2013/4/27 Hélio Miranda > Made the proposed change, but what happens is that when will insert the > movie with a genre that already exists to get the id of that genre, gives > the following error: ObjectId ('517b15658774a7177cb1280d ') as the id that > comes from this comes mongodb form. > > When

Re: How to add Django project to sys.path?

2013-04-19 Thread Felipe Brunelli de Andrade
You can try to use that! that's works for me! import os # Make filepaths relative to settings. ROOT = os.path.dirname(os.path.abspath(__file__)) path = lambda *a: os.path.join(ROOT, *a) STATIC_ROOT = path('static') MEDIA_ROOT = path('media') ----

Re: Testing with a custom user model as a ForeignKey in Django 1.5

2013-03-27 Thread Felipe Coelho
2013/3/18 Felipe Coelho > 1) Using tests that need the models, but don't actually touch the >> database. This means you can put the model definition inline in the test >> code, so AUTH_USER_MODEL has the right value when the code is run. This >> lets us test validatio

Re: save as

2013-03-20 Thread Felipe Coelho
> > 2013/3/20 Larry Martell > I'm not outputting any PDF. I have a zip file I want to download to > the user's computer, and I also want my template rendered. That means you have should have two requests, possibly processed by two different views, which is what Fel

Re: save as

2013-03-20 Thread Felipe Prenholato
I mean, you output PDF. It's a simple view that output PDF, this view is called via ajax after page that show HTML loads. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/

Re: Apache JQuery deployment advice

2013-03-20 Thread Felipe Prenholato
git checkout $1 python manage.py migrate --delete-ghost-migrations && python manage.py collectstatic -cl --noinput && touch $VIRTUALENV/tmp/restart.txt $1 is a parameter, so it is like that: release_new_version v099. Fabric is a much better way to work, but myself not migrated y

Re: save as

2013-03-20 Thread Felipe Prenholato
When page loads (document.ready), do a ajax call to a view that returns PDF file. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/

Re: PostgresSQL or MySql with django?

2013-03-20 Thread Felipe Prenholato
I'll bookmark this answer and show to anyone who ask about mysql \m/ Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/3/18 Russ

Re: Django 1.5 where are the static files of admin site

2013-03-19 Thread Felipe Coelho
2013/3/19 RedJuan > I'm setting up nginx to serve static files. > Route (django / contrib / admin / media / admin) is not on the > installation path (/ usr/local/lib/python2.7/dist-packages/django) > Where is it located now? > Why don't you run "python manage.py collectstatic" and set the nginx

Re: Testing with a custom user model as a ForeignKey in Django 1.5

2013-03-18 Thread Felipe Coelho
> > 1) Using tests that need the models, but don't actually touch the > database. This means you can put the model definition inline in the test > code, so AUTH_USER_MODEL has the right value when the code is run. This > lets us test validation conditions, etc, but not hit the database. You > *mig

Re: Testing with a custom user model as a ForeignKey in Django 1.5

2013-03-16 Thread Felipe Coelho
2013/3/14 Felipe Coelho > I'm using Django 1.5 and I'm trying to make an application work with > any custom user model. > > The issue is that I want to be able to test the app as well, but I > can't find a way to make `ForeignKey` model fields to test correctly >

Testing with a custom user model as a ForeignKey in Django 1.5

2013-03-13 Thread Felipe Coelho
I'm using Django 1.5 and I'm trying to make an application work with any custom user model. The issue is that I want to be able to test the app as well, but I can't find a way to make `ForeignKey` model fields to test correctly using custom user models. When I run the test case attached below, I g

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
like JSON, someone may need WSDL, pure XML, etc. We maybe handle this kind of issue in some django-ajax-views package better than in core :) Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chron

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
).click(function() { > $( "#dialog"{{ row.sku }} ).dialog( "open" ); > }); > > Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.co

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
: https://gist.github.com/chronossc/4952775 ... consider it a example :) Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/2/13 > ** &

Re: newbie URL problem

2012-07-26 Thread Felipe Sitta
I did what you said and put an third parameter on the track view and it worked. I think it's not an good practice, because is maintaining useless data, but for now its ok, at least the listing is done :D I still have to learn to use those regular expressions, its kinda tricky =/ Anyway, thanks

newbie URL problem

2012-07-26 Thread Felipe Sitta
I'm new to programming and I'm designing an demo website to get used to django, web and database stuff. It's about racetracks. The structure is the following: There's a menu with a link "Track List", it leads to a page with an country list each one as a link. Each link leads to an list with the

Question about threading a view

2012-03-19 Thread Felipe Arruda
Hi, I'll try to explain the best I can my problem, and I don't know if what I'm trying to archive is the best way to get where I want, but here is it: I want that a specific view to run in a new thread, ex: def foo(request): do_something_slow() return httpResponse But I DON'T want that a

Django Deploy - Some Questions regarding it

2012-01-28 Thread Felipe Arruda
Hi there everyone, I'm trying to make my first deploy of a project, and encountered some problems. Here is the scenario: I read that to make uploaded files only accessible for the uploader(the user) was a better choice to use nginx(apparently more easy to configure). But after following a couple of

Re: many-to-many queryset question

2011-12-06 Thread Felipe Morales
You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com . > For m

Re: help optimizing a snippet

2011-12-06 Thread Felipe Morales
lexisnexis.at > > Tel.: 00431 534521573 > > Fax: +43 (1) 534 52 - 146 > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. >

Re: AW: Performance

2011-12-06 Thread Felipe Morales
Sorry, I was wrong, the sintax is: queryset = Model.objects.filter().select_related('field', 'field2') 2011/12/6 Felipe Morales > No, when you use the select_related method, the query that generated is: > > SELECT * FROM tablename > INNER JOIN tablename2

Re: AW: Performance

2011-12-06 Thread Felipe Morales
rings almost a second J** > ** > > Unfortunately the function seems to effect the results. > > ** ** > > If I run the query with select_related() I get 151 objects. > > Without select_related() I get 199. > > ** ** > > Is there something I can

Re: AW: Performance

2011-12-05 Thread Felipe Morales
Patrick, try to use select_related() method instead of only filter() when you get a list of elements, e.g. : queryset = Model.objects.filter().select_related() by this way you'll get only one query instead 800 good luck! Felipe 2011/12/5 Nikolas Stevenson-Molnar > It would help t

Starting Your Project With Django-Structurer

2011-11-22 Thread Felipe Arruda
Hi there everyone I've done this app a while ago to use here in my company, and decided to share with you guys. It helps to build your project using a more elaborated structure then the one that is created using django-admin.py. And if you want you can configure and create your own project structu

Re: Question about losing port number.

2011-09-26 Thread Felipe Prenholato
People, this is DJANGO user list, not PHP user list... Go to the right place (and you will get more help). Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chronossc 2011/9/26 Chen Xu > Thx, but $_SERVER

Re: new at this -- need some guidance

2011-09-10 Thread Felipe Lopez
or FK from song to album? > FK from Song to Album. The Django Tutorial has a good example on how to use this relationship: a Poll has many Choices. https://docs.djangoproject.com/en/1.3/intro/tutorial01/ -- Luis Felipe López Acevedo IntrosMedia <http://introsmedia.wordpress.com/> --

Re: Django Projects in Gedit

2011-09-07 Thread Felipe Lopez
a large Django project. > > https://github.com/Quixotix/gedit-django-project Great, thanks. Another thing I don't have to write myself. -- Luis Felipe López Acevedo IntrosMedia <http://introsmedia.wordpress.com/> -- You received this message because you are subscribed to the

Re: Work in memory instead of BD, how to?

2011-08-18 Thread Felipe Arruda
Humm, I see, the second case I could make out of it somehow(just have some doubts in 2.5: How am I supposed to do this?) The first one I could't see how I'm not going to lose the changes, done in cache. My biggest problem is in altering some value in some models, since this operation will be done m

Re: Work in memory instead of BD, how to?

2011-08-18 Thread Felipe Arruda
y app which spares you from > reinventing the wheel:http://bitbucket.org/kmike/django-cache-utils/ > > Cheers, > AT > > On Thu, Aug 18, 2011 at 10:22 AM, Felipe Arruda < > > > > > > > > felipe.arruda.pon...@gmail.com> wrote: > > Hi there, I was

Work in memory instead of BD, how to?

2011-08-18 Thread Felipe Arruda
Hi there, I was doing some project recently and faced a problem of performance. I need to be able to do a lot of access to some information on the DB, almost all the time, and doing so seams to be taking too long. Is it possible do do something like this: Get the infos from the BD and put them in

Re: Issues with ManyToManyField

2011-07-19 Thread Felipe Spychalski
Thanks a lot! That worked. On Tue, Jul 19, 2011 at 9:22 PM, Nan wrote: > > Try unique_together on employee and team in the TeamMember model -- it > will throw an error if you try to add a record with the same employee > and team as another. > > On Jul 19, 7:27 pm, Felipe

Issues with ManyToManyField

2011-07-19 Thread Felipe Spychalski
Hello, I'm having an issue with my schema and the admin interface where I got 2 tables with a ManyToMany relationship: Employee and Team. The problem is I'm able to add one Employee to the same Team twice. Is there a way to prevent this from happening? Adding 'unique' to the Employee FK makes it s

FormWizard not save data

2011-05-18 Thread Felipe Tomaz
how to save the information using the form FormWizard? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@go

Re: Implementing a ldap db backend

2011-03-22 Thread Felipe Prenholato
erge both apps and construct a full ldap backend / ldap orm for django. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chronossc 2011/3/21 David De La Harpe Golden > On 03/11/10 07:48, sebastien piquemal wrote

Re: Implementing a ldap db backend

2011-03-21 Thread Felipe Prenholato
Actually I reached a similar position and I'm interested enought to work on something like that. You are still interested or have some code to share about it? Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chron

Re: moving from Postgres to MySQL

2010-10-22 Thread Felipe Prenholato
-http://www.simplistix.co.uk > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to >

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
templates from admin, so I moved it to templates/registration/ 2010/10/7 Joel Klabo > Yeah. I don't understand that either. Except that auth_views.py uses > different templates I think… > > Sent from my iPhone > > On Oct 7, 2010, at 1:50 PM, Felipe Prenholato > wrote: &g

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
mplete') >> 177 - post_change_redirect = >> reverse('registration.auth_views.password_change_done') >> >> It also bears mentioning that name spacing registration can cause a >> similar set of errors. >> >> Let me know if that worked, >> Ted &g

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
gt; <http://brooski.net/accounts/password/reset/confirm/1-2r2-ce8f57c2669d29e5f24e/>and >> then when I click the link I get this error: http://dpaste.org/vrLp/ >> >> >> >> On Thu, Oct 7, 2010 at 5:48 AM, Felipe Prenholato >> wrote: >> >>>

  1   2   >