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

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

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

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

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

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

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

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

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/

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. > &g

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

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

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

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
server with 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 <sams...

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

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

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

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
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 <timogra...@gmail.

Complex query, queryset.query.alias_map and query changes

2016-09-23 Thread Felipe Prenholato
he 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, not because my choice but because software here still a bit legacy about

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

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()

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ć <zasebn...@gmail.com> wrote: > @Felipe > > Yes, I use very similar

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ć <zasebn...@gmail.com> wrote: > @To

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ć <zasebn...@gmail.com> wrote: > @Vijay > > Yes, source of the mess

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
value-as-an-obj > > On Wed, May 27, 2015 at 9:41 AM, Felipe <une...@gmail.com > > wrote: > >> 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 verif

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

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

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,

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

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

2014-12-23 Thread Felipe Faraggi
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 <felipe...@gmail.com > > wrote: > > I'd like to 're-open' this question to ask another (maybe) short one: > > The

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

2014-12-22 Thread Felipe Faraggi
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 > relational structure. &g

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

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

2014-12-16 Thread Felipe Faraggi
; -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 <felipe...@gmail.com > > wrote: > > Hello everybody. > > I am

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',

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

Re: Translated URL's

2014-02-12 Thread Felipe Mesquita de Oliveira
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 Oliveira wrote: > > Hi all, > > > I'm trying to work with translated URL's, but the behavior I'm getting is > not the one I

Re: Translated URL's

2014-02-10 Thread Felipe Mesquita de Oliveira
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. > > > # myproject.urls > > from django.conf.urls import patterns, url &

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

2014-02-07 Thread Felipe Bessa Coelho
on of the Django project structure, 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 g

Translated URL's

2014-02-07 Thread Felipe Mesquita de Oliveira
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 page (rendered using his/her language setting), and not Http404. Thanks for any help, and if I was not clear, please let me know. Regards, Felipe (Sp/Bra)

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

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

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,

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

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 >

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") > > ... > >

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

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

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

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,

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

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 Miranda

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

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') --- Felipe

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

2013-03-28 Thread Felipe Coelho
2013/3/18 Felipe Coelho <fcoelh...@gmail.com> > 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 >&

Re: save as

2013-03-20 Thread Felipe Coelho
> > 2013/3/20 Larry Martell <larry.mart...@gmail.com> > 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, wh

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/ | Twitter: http

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/3/20 Larry

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 Russell Keith-Magee

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

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 >

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 <fcoelh...@gmail.com> > 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 t

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

Re: Is there an easy way to popup forms?

2013-02-14 Thread Felipe Prenholato
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/chronossc/ | Twitter

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

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 <jirka.ve

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

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

Re: many-to-many queryset question

2011-12-06 Thread Felipe Morales
ooglegroups.com <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> > . > > -- Felipe Morales C. Ingenierío de Ejecución en Comput

Re: help optimizing a snippet

2011-12-06 Thread Felipe Morales
t; > > -- > 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...@googl

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 <felipeale...@gmail.com> > No, when you use the select_related method, the query that generated is: > > SELECT * FROM tablename > INN

Re: AW: Performance

2011-12-06 Thread Felipe Morales
ies in half which brings 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

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 <nik.mol...@consbio.

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

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 <xuche...@gmail.com> > Thx, but

Re: new at this -- need some guidance

2011-09-10 Thread Felipe Lopez
ny from Album to song 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://introsmed

Re: Django Projects in Gedit

2011-09-07 Thread Felipe Lopez
e > I'm working on 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

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

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

2011-08-18 Thread Felipe Arruda
hird party 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

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 <ringe...@gmail.com> 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

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

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

Re: Implementing a ldap db backend

2011-03-22 Thread Felipe Prenholato
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 <david.delaharpe.gol...@ichec.ie> > 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/chronossc 2010/11

Re: moving from Postgres to MySQL

2010-10-22 Thread Felipe Prenholato
from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Felipe 'chronos' Prenholato. Linux User nº 405489 Ho

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 <joelkl...@gmail.com> > 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, Fe

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
t = >> 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 >> >> On Oct 7, 10:59 am, Joel Klabo <joel

Re: Django Registration password reset problem

2010-10-07 Thread Felipe Prenholato
5f24e/ >> >> >> <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 >> <

  1   2   >