Re: Ajuda

2023-05-13 Thread Abrao Roberto
nao consigo criar ambiente virtual no vscode, para iniciar um projecto django On Thu, May 11, 2023, 15:42 Michael Edet wrote: > What help do you need? > > On Thu, 11 May 2023, 14:09 Abrao Roberto, > wrote: > >> Olá pessoal, sou um programador iniciante e quero migrar pa

Ajuda

2023-05-11 Thread Abrao Roberto
Olá pessoal, sou um programador iniciante e quero migrar para Django pois uso streamlit para desenvolver, mas estou tendo problemas serio com ambiente virtual. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone! I use ngrok to make my projects available in django. I'm having trouble accessing the admin page. After I enter the username and password I get the error 403. Has anyone had the same problem and could help me? Regards -- You received this message because you are subscribed to

Re: Install -r 309 traceback

2020-08-05 Thread Roberto Melucci
Thanks for your attention, but, as i say yet, i don't go on internet on my pc, but i go with my smartphone, download the file, and install offline. But any whl i don't installed, even wxpython i.e. Why? Have you a solution for me? Thanks more. Robertomelucci. Il Mer 5 Ago 2020, 13:46 Arief

Install -r 309 traceback

2020-08-04 Thread Roberto Melucci
I was unable to install django 3 0 9, with pip install -r Django-3.0.9-py3-none-any.whl ... shows me 11 tracebacks, of which the last is in lib / encodings / cp1252.py, line 15, in decode return codecs.charmap_decode (input, errors, decoding_table) I don't have internet on the pc, and it must

Install -r 309 traceback

2020-08-04 Thread Roberto Melucci
Non sono riuscito ad installare django 3 0 9, con pip install -r Django-3.0.9-py3-none-any.whl ... mi segnala ben 11 traceback, di cui l'ultimo è in lib/encodings/cp1252.py, line 15, in decode return codecs.charmap_decode(input,errors,decoding_table) Non ho internet sul pc, e deve scaricare i

TagCloud Generator

2017-05-08 Thread Roberto
Ciao a tutti, Sto cercando il modo di creare una TagCloud partendo da un file txt contenente parole e i loro rispettivi pesi. Non riesco a dare una direzione al mio lavoro e ho appena cominciato ad utilizzare Django. Se qualcuno mi desse un canovaccio da seguire sarebbe perfetto! Grazie a tutti

Add new record in filtered list in the admin interface

2017-02-26 Thread Roberto Russi
In the Admin interface when I add a new record to a filtered list and submits it, I come back in a no longer filtered list unlike when I edit a record. How can I fix this problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

In the admin area Pre-select foreingkey fields for filtered list

2017-02-08 Thread Roberto Russi
In the admin I have a list with a filter on a foreing-key field of model. In the new record form, when the filter is applied, I wont that foreing-key field is pre-compiled with the same value of the filter. Is there a way? -- You received this message because you are subscribed to the Google

validation of admin form with inlines

2017-02-04 Thread Roberto Russi
I need to validate a form in the admin area checking if the SUM of 'price' field in inlines match whit 'amount' field in the main form. What is best way? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

pre-populate new record foreing key in admin django-suit

2017-02-03 Thread Roberto Russi
I need to pre-populate some fields in the form opened when you press the plus button to add a new record for a foreingkey field in the admin interface. I'm using Django-Suit. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: form_invalid

2017-01-30 Thread Roberto Russi
Is just what i pictured. But when form_invalid is called? Il giorno lunedì 30 gennaio 2017 02:35:54 UTC+1, Melvyn Sopacua ha scritto: > > On Sunday 29 January 2017 04:10:20 Roberto Russi wrote: > > > I need get data from a form when submit is clicked even if data are > >

Re: form_invalid

2017-01-29 Thread Roberto Russi
X1CEazC1dAK3aD1n8zl1aUU'], > 'demo_desc > r': [''], 'demo_code': ['']}> > > ... > > BTW, I had to add "blank=True, null=True" to your models, otherwise > the fields are marked as required and the browser does validate that. > > HTH, > Norberto > > > 2017-

Re: form_invalid

2017-01-29 Thread Roberto Russi
elf, request, *args, **kwargs), in request.POST, you'll > have your form's data (before it's validated). > > HTH, > Norberto > > 2017-01-29 9:10 GMT-03:00 Roberto Russi <robrus...@gmail.com > >: > >> I need get data from a form when submit is clicked even if dat

form_invalid

2017-01-29 Thread Roberto Russi
I need get data from a form when submit is clicked even if data are invalid, inconplete or empty. I try to override form_invalid in CreateView but it is never called and form_valid, obviously, only if data are valid. Why form_invalid is never called? I have this test project with django 1.10.5

inline parent value

2016-12-01 Thread Roberto Russi
hi, I have 3 models: class Orders(models.Model): brand = models.ForeignKey( Brands, verbose_name = "Brand", null=True, blank=True, related_name="ord_brand" ) dateord = models.DateField("Date") numbord =

Inline master

2016-12-01 Thread Roberto Russi
I have 3 models: class Products(models.Model): brand = models.ForeignKey( Brands, verbose_name = "Brand", ) code = models.CharField("Code", max_length=25, ) descr = models.CharField("Description",

Re: Graceful Reloading for Schema Changes - UWSGI - Gunicorn?

2015-04-16 Thread Roberto De Ioris
ding the whole WSGI server is the only reliable solution (in fact used by everyone). If you are scared about potential downtimes check this article: http://uwsgi-docs.readthedocs.org/en/latest/articles/TheArtOfGracefulReloading.html But take in account that 99% of the times/cases a simple gra

Re: Problem with uwsgi

2015-02-03 Thread Roberto De Ioris
annoying. Also I don't know how our customers are affected when this > happens, but it's probably not good. > > Regards, > > Andréas > Hi, ensure you are running a stable uWSGI version 1.4.x or 2.x, older versions have serious bugs. Eventually paste your uWSGI configuration

Re: Flup vs Guicorn vs uWsgi on Nginx

2014-07-30 Thread Roberto De Ioris
Lot of users prefer this approach. Apache can be a good application server. (disclaimer: i am the uWSGI lead developer) -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Django Admin Page not working

2014-02-12 Thread Roberto López López
ango-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/860138ae-d915-493d-9643-2148842eb724%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -

Re: Mapping SSL certificates to django users

2014-01-13 Thread Roberto De Ioris
protect some view: https://github.com/unbit/uwsgi.it/blob/master/uwsgi_it_api/views.py#L19 this works in mod_wsgi and variables/cgi based proxies like FastCGI,SCGI or uwsgi -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups &q

Re: Django storage engine

2013-11-07 Thread Roberto López López
Which is the question? On 07. nov. 2013 09:15, Harjot Mann wrote: Is using the InnoDb storage engine as default as per my knowledge in MySql MyISAM is the default storage engine. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: supervisor

2013-10-21 Thread Roberto De Ioris
d. I have seen lot of users happy with 'god' too (it is a ruby app) -- Roberto De Ioris http://unbit.it -- 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

Re: Defining new project as a service at nignx

2013-10-15 Thread Roberto López López
Hi Muhammed, I agree with Javier: a django project is never run. In your case it is deployed on gunicorn, which reads/interprets your source code. But it's never started as a service. You can run nginx as a service, though. Roberto On 10/15/2013 11:12 AM, Muhammed TÜFEKYAPAN wrote

Re: New to Django

2013-10-15 Thread Roberto López López
r...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/fc21b86e-6a92-4c96-b376-06

Re: readonly_fields depending on request

2013-10-15 Thread Roberto López López
ck the box in the admin interface. Do you see any flaw here? Thanks again! Roberto On 10/10/2013 04:52 PM, Timothy W. Cook wrote: > On Thu, Oct 10, 2013 at 10:04 AM, Roberto López López > <roberto.lo...@uni.no <mailto:roberto.lo...@uni.no>> wrote: > > This i

Re: readonly_fields depending on request

2013-10-10 Thread Roberto López López
uld be the > solution. > > > > On Thu, Oct 10, 2013 at 9:45 AM, Roberto López López > <roberto.lo...@uni.no <mailto:roberto.lo...@uni.no>> wrote: > > Hi, > > In my project I make use of django-admin. I need to have different > readonly_fields depending on

Re: readonly_fields depending on request

2013-10-10 Thread Roberto López López
: return readonly else: import itertools return itertools.chain(readonly, ('is_featured',)) On 10/10/2013 02:45 PM, Roberto López López wrote: > Hi, > > In my project I make use of django-admin. I need to have different > readonly_fields depending

readonly_fields depending on request

2013-10-10 Thread Roberto López López
() and ModelAdmin.get_form(). But no success. Any other suggestions? Thanks! Roberto -- 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-user

Re: proper way to override text plugin widget

2013-10-07 Thread Roberto López López
wrong list, sorry :-( On 10/07/2013 11:23 AM, Roberto López López wrote: > Hi, > > The users of my project prefer ckeditor, so I am wondering how to use it > for cms.plugins.text . I am already making use of django-ckeditor in > other parts of the application. Can anyone enli

proper way to override text plugin widget

2013-10-07 Thread Roberto López López
Hi, The users of my project prefer ckeditor, so I am wondering how to use it for cms.plugins.text . I am already making use of django-ckeditor in other parts of the application. Can anyone enlighten me please? Thanks, Roberto -- You received this message because you are subscribed

Re: Django Pagination

2013-10-03 Thread Roberto López López
On 10/03/2013 04:13 PM, Roberto López López wrote: > *return HttpResponse(json.dumps([players]) , > content_type='application/json')* better without the square brackets *return HttpResponse(json.dumps(players) , content_type='application/json')* -- Roberto López López System Dev

Re: Django Pagination

2013-10-03 Thread Roberto López López
roup, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e7e37ad2-281c-41f4-a0b9-b333294fe1b8%40googlegroups.com. > For more options, v

Re: Django Pagination

2013-10-03 Thread Roberto López López
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/e7e37ad2-281c-41f4-a0b9-b333294fe1b8%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- Roberto Lópe

Re: model inheritance

2013-10-02 Thread Roberto López López
y GitHub > page <https://github.com/lgiordani> - My Coderwall profile > <https://coderwall.com/lgiordani> > > > 2013/10/2 Roberto López López <roberto.lo...@uni.no > <mailto:roberto.lo...@uni.no>> > > Hi, > > I am extending a 3rd part

Re: model inheritance

2013-10-02 Thread Roberto López López
Hi Leonardo, thanks for your answer. Yes, it has been synced. The model itself is a little bit bigger, as you can notice from the code https://dpaste.de/c3Rg I am using as well the News model from https://github.com/wildfish/cmsplugin_news/blob/master/cmsplugin_news/models.py Regards, Roberto

model inheritance

2013-10-02 Thread Roberto López López
Hi, I am extending a 3rd party model in my application, using multi-table inheritance. I can create an instance and modify it, but when I try to list the created objects at http://localhost:8000/en/admin/news/news/ , I am getting a nice exception: Traceback: File "/home/ro

KeyError: Key 'slug' not found in Form

2013-09-28 Thread Roberto López López
a new News item, I am getting the following error: |Traceback: File "/home/roberto/.virtualenvs/ve_news/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 115. response = callback(request, *callback_args, **callback_kwargs)

django admin: integrate django-modeltranslation + django-ckeditor into 3rd party module

2013-09-26 Thread Roberto López López
/tabbed_translation_fields.css',), } Does anyone have any idea about how to make the editor work? Thank you very much! Regards, Roberto -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Recommended dev environment for a Django project deployed to Linode

2013-09-25 Thread Roberto López López
> To unsubscribe from this group and stop receiving emails from it, send > an email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visi

Re: m2m_changed signal not caught

2013-09-17 Thread Roberto López López
u edit the relationship > from a *News* model form, you need to hook it up > ("sender=News.department.through"). > > On Sep 17, 2013, at 3:59 AM, Roberto López López <roberto.lo...@uni.no > <mailto:roberto.lo...@uni.no>> wrote: > >> >> Hi, >> &g

m2m_changed signal not caught

2013-09-17 Thread Roberto López López
ent from the formset, the signal is never caught by my method. Any help here? Thank you very much. Roberto -- 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 e

Re: New field in django

2013-09-08 Thread Roberto López López
You have to fake the migration. On 09/08/2013 09:12 PM, Harjot Mann wrote: > I am trying to add a new field to model class in django using south > but when I am running ./manage.py migrate app, I am getting this error > http://202.164.53.122/~harjotmann/southerror > -- Roberto

Re:

2013-08-21 Thread Roberto López López
his group and stop receiving emails from it, send > an email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.co

Creating libraries that use django ORM and they use each other.

2013-07-29 Thread Roberto Bouza
Hello, I'm building a set of common libraries and a few other specific libraries. As of right now the common library works great as an independent library that can be used by applications. The problem I'm having now is that I'm building a new library that will use the common library. This new

Re: working with images in django

2013-07-28 Thread Roberto López López
t; To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Roberto López López System Developer Parallab, Uni Computing +47 55584091 -- Yo

Re: flatpages-tinymce

2013-07-28 Thread Roberto López López
rom 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. > For more options, visit https://groups.google.com/groups/opt_out. > >

Re: flatpages-tinymce

2013-07-28 Thread Roberto López López
On 07/28/2013 08:35 AM, Karl Arunachal wrote: > || -- Roberto López López System Developer Parallab, Uni Computing +47 55584091 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Error.

2013-07-27 Thread Roberto López López
Well, I suppose you are running that locally or have access to the server. So show the logs. On 07/27/2013 01:40 PM, Nigel Legg wrote: > > I have provided all the information I have. That's all there is on the > screen in the browser. There is no trace. > > On 27 Jul 2013 12:26,

Re: Error.

2013-07-27 Thread Roberto López López
om 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. > For more options, visit https://groups.google.com/groups/opt_out. > >

Abstract models instrospection

2013-07-08 Thread Roberto Bouza
help is appreciated. Thank you -- Roberto -- 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

Re: What is the best practice to learn Django 1.5?

2013-06-28 Thread Roberto López López
s@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Parallab, Uni Computing Høyteknologisenteret, Thormøhlensgate 55

Re: how to properly use the m2m_changed signal?

2013-06-28 Thread Roberto López López
Changing the m2m_changed signal on Project.departments.through to post_save on ProjectDepartmentMembership did the trick. m2m_changed signal seems to work as long as you don't explicitly define the "through" model. On 06/28/2013 02:06 PM, Roberto López López wrote: > >

Re: how to properly use the m2m_changed signal?

2013-06-28 Thread Roberto López López
I am doing tests and the m2m_changed signal seems to work perfectly as long as I have not defined a "through" model. Is there any trick here? Thanks! On 06/28/2013 12:14 PM, Roberto López López wrote: > > I have tried as well using the post_save signal and overriding the

Re: Help in finding how to learn Django

2013-06-28 Thread Roberto López López
oglegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Paral

Re: Django-admin-tools unicode problem

2013-06-28 Thread Roberto López López
Hi, I can perfectly understand Portuguese, but it's not the case for many users of this mailing list. Please, stick to English... Cheers, Roberto On 06/28/2013 01:35 PM, Sandro Dutra wrote: > Como o Gilberto postou, pode haver um problema quando o teu editor de > textos salva o arqu

Re: how to properly use the m2m_changed signal?

2013-06-28 Thread Roberto López López
I have tried as well using the post_save signal and overriding the save() method. But in none of those cases Project.departments is populated yet when reaching my code :-/ On 06/28/2013 11:50 AM, Roberto López López wrote: > > Hi, > > I am trying to listen to the m2m_changed

how to properly use the m2m_changed signal?

2013-06-28 Thread Roberto López López
, and departments appears as an inline of Project Any help please? Thanks. Cheers, Roberto -- 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-user

Re: redirection problem

2013-06-26 Thread Roberto López López
Update: if I disable 'django.middleware.locale.LocaleMiddleware', it's not redirecting anymore. But I need to have i18n support in my website! Any idea? On 06/26/2013 05:09 PM, Roberto López López wrote: > Hi, > > After creating an object from the admin interface I'm r

redirection problem

2013-06-26 Thread Roberto López López
Middleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', ) Any suggestion please? Thanks! Roberto -- You received this message because you are subscribed to the Google Groups &qu

Re: countries phone prefixes

2013-06-20 Thread Roberto López López
Ok, answering my own question: django-country-dialcode On 06/20/2013 11:35 AM, Roberto López López wrote: > Hi, > > I need a sort of prepopulated foreign key with countries and their phone > prefixes, to add to my models. Does anyone know any 3rd party package or > se

countries phone prefixes

2013-06-20 Thread Roberto López López
Hi, I need a sort of prepopulated foreign key with countries and their phone prefixes, to add to my models. Does anyone know any 3rd party package or service providing this? Thanks. Cheers, Roberto -- You received this message because you are subscribed to the Google Groups "Django

Re: m2m_changed signal registration

2013-06-19 Thread Roberto López López
Btw I have opened a stackoverflow thread: http://stackoverflow.com/questions/17149305/post-save-signal-and-relations At the beginning I was thinking of using a post_save signal, but an user there suggested me to better use the m2m_changed. On 06/18/2013 04:12 PM, Roberto López López wrote

Re: Problem setting up django server

2013-06-18 Thread Roberto
Are you in a virtualenv? Can you run $python manage.py shell? Which version of python have you installed? Django v1.5 requires python >= v2.6.5, and from your stacktrace it seems you just have v2.6. https://docs.djangoproject.com/en/1.5/faq/install/#what-are-django-s-prerequisites On Tuesday,

m2m_changed signal registration

2013-06-18 Thread Roberto López López
2m_changed-, re-read my code, googled for it, asked in other sites... but I have not been able to find a solution. Any help please? Thanks! Roberto -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: request_finished signal not being called with Django 1.5.1 with uwsgi

2013-05-31 Thread Roberto De Ioris
uWSGI releases with WSGI specs, so why django should bother ? -- Roberto De Ioris http://unbit.it -- 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

Re: Multiprocess and Global State

2013-05-23 Thread Roberto De Ioris
icorn > > Ch. > If it works well with gunicorn it could be a problem with how (or better 'when') you open the connection to mongodb. Add --lazy-apps to uWSGI options to load the application after fork() (like gunicorn) -- Roberto De Ioris http://unbit.it -- You received this messag

Re: Pls help me

2013-05-15 Thread Roberto López López
oogle.com/groups/opt_out > <https://groups.google.com/groups/opt_out>. > > > > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To unsubscribe from this group and st

Re: form validation

2013-05-11 Thread Roberto López López
Problem solved with BaseInlineFormSet.clean() :-) On 05/11/2013 06:56 PM, Roberto López López wrote: > > Hi everyone, > > I need to do some validation in my model. So far, I have been able to > validate normal forms, but I want to validate forms with an inline, to > ensure

form validation

2013-05-11 Thread Roberto López López
know how to check the value of those other (I just want to ensure that at least one fo them has lead==True). Does anyone know how to do this cross validation? Thank you very much for your suggestions. Regards, Roberto -- You received this message because you are subscribed to the Google Groups

django-guardian VS django admin

2013-04-28 Thread Roberto López López
into the admin interface. Even though, when I log in with a user from different department, he's able to modify the other department. Any help please? Thanks in advance. Regards, Roberto -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: WSGIPythonPath and

2013-04-12 Thread Roberto López López
Thank you very much Joey and Nik, I will talk about your proposed solutions with our sysadmin. Best, Roberto On 04/12/2013 01:11 AM, Nikolas Stevenson-Molnar wrote: > Another direction might be to run a separate WSGI HTTP server (like > gunicorn) and proxy to it from Apache. Saves the

Re: WSGIPythonPath and

2013-04-11 Thread Roberto López López
;Joey Espinosa" <jlouis.espin...@gmail.com > <mailto:jlouis.espin...@gmail.com>> wrote: > > Do all your sites share the same Python, or are they in different > virtualenvs? > > -- > Joey "JoeLinux" Espinosa > Python Developer > h

WSGIPythonPath and

2013-04-11 Thread Roberto López López
: WSGIPythonPath cannot occur within section Can anyone give us any hint? Thank you very much! Roberto -- 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

Re: field lookups problem

2013-03-22 Thread Roberto López López
/2013 05:02 PM, akaariai wrote: > On 22 maalis, 15:44, Roberto López López <roberto.lo...@uni.no> wrote: >> Hi, >> >> I have a problem with my data model while doing field lookups. This is >> my models.py: >> >> from django.db import models, IntegrityError

field lookups problem

2013-03-22 Thread Roberto López López
1__exact=m2) []# NOT OK!!! Am I missing anything? Can anyone spot the problem? Thanks for your advice. Regards, Roberto -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: django templates - iterate over several lists

2013-03-08 Thread Roberto López López
Thank you very much! On 03/08/2013 03:12 PM, Javier Guerra Giraldez wrote: > On Fri, Mar 8, 2013 at 5:07 AM, Roberto López López > <roberto.lo...@uni.no> wrote: >> I'd like to avoid having to concatenate them in the view and pass that >> as another parameter. >

django templates - iterate over several lists

2013-03-08 Thread Roberto López López
some stuff {% endfor %} Thanks for your input! Roberto -- 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: I screwed up my django site using touch

2013-03-07 Thread Roberto López López
If you are using pycharm, you just need to use the local history to check which indents you have changed. (right click over the file you want to check - local history - show history - ...) On 03/07/2013 03:58 PM, frocco wrote: > The problem with the stack trace, is that I could not tell what

Re: I screwed up my django site using touch

2013-03-07 Thread Roberto López López
do not understand what the error indentation means. > I am new to django, coming from PHP. > I was using touch, because unlike PHP, I wanted changes to show without > kicking users off. > now I am afraid to use touch. > > > On Thursday, March 7, 2013 8:54:15 AM UTC-5, R

Re: models i18n

2013-03-07 Thread Roberto López López
Yes, I meant that. It works great, and fits perfectly my needs. I give it an AAA+ Thanks again. On 03/07/2013 02:58 PM, Johan ter Beest wrote: > > On Mar 6, 2013, at 4:20 PM, Roberto López López <roberto.lo...@uni.no> wrote: > >> >> Thanks for your suggestio

Re: I screwed up my django site using touch

2013-03-07 Thread Roberto López López
up and stop receiving emails from it, send > an email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.goog

Re: models i18n

2013-03-06 Thread Roberto López López
Thanks for your suggestion Johan. Just another question, which I've not seen answered in the documentation: is there any custom filter/tag to access those translated fields from a template? Thanks Best, Roberto On 03/05/2013 10:39 PM, Johan ter Beest wrote: > > On Mar 5, 2013, at 10

i18n

2013-03-06 Thread Roberto López López
Hi, I am setting up i18n in my django app. I have added the following to my settings.py: PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) LOCALE_PATHS = ( os.path.join(PROJECT_PATH, 'locale'), ) LANGUAGES = [ ('en',

Re: reverse foreign key relationship usage

2013-03-06 Thread Roberto López López
com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Parall

models i18n

2013-03-05 Thread Roberto López López
Hi guys, I am developing a django application and between my requirements there is being able to set the model fields into different languages. For example: class Employee(models.Model): position = models.CharField() # etc. The employee position won't be the same in English and

Re: Use variable in my template?

2013-02-28 Thread Roberto López López
> -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to dj

Re: Use variable in my template?

2013-02-28 Thread Roberto López López
om. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Parallab

Re: problem in displaying data on html

2013-02-28 Thread Roberto López López
glegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Parallab, Uni Computing Høyteknologisenteret, Thormøhlensga

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Roberto López López
. Roberto On 02/27/2013 04:19 PM, Maria wrote: > Hello Alan, > > I'd love to learn something new but unfortunately I dont have the time > since my project is due very soon. Is there no easy or short way to get > this time variable into my code? Also, how do I "

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Roberto López López
, visit https://groups.google.com/groups/opt_out. > > -- Kind regards, Roberto López López System Developer Parallab, Uni Computing Høyteknologisenteret, Thormøhlensgate 55 N-5008 Bergen, Norway Tel:(+47) 555 84091 -- You received this message because you are subscribed to the Go

Re: Begginer

2013-02-27 Thread Roberto López López
Try https://docs.djangoproject.com/en/1.5/intro/ On 02/27/2013 09:29 AM, Akshay Ramesh wrote: > Hi I am new to Djnago and would like to have some help from you. Where > should I start from ? > -- You received this message because you are subscribed to the Google Groups "Django users"

Re: m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Mike, Cool, you are right! Changing the related_name to something different than groups seems to solve the problem. Thank you very much :-) Roberto On 02/24/2013 11:30 PM, Mike Dewhirst wrote: > Roberto > > I'm not entirely sure but it is possible that your group is getting &

m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Hi, I have a problem involving a relation between two entities, Person and Group. from django.contrib.auth.models import User from django.db import models class Group(models.Model): employees = models.ManyToManyField('staff.Person', related_name='groups') leader =

Re: Django gracefully shutdown

2012-12-08 Thread Roberto De Ioris
versatile. Regarding fastcgi (read: flup, as fastcgi is only a communication protocol) i do not think it is still "on par" with more modern solutions like uWSGI, gunicorn and mod_wsgi. Again, if you want a simple pure-python application server, gunicorn is a better solution than flup (

RES: Django-tables2

2012-08-24 Thread Roberto Ferreira Junior
Hi Matt, When I use linkcolum instead of a template tag, my collum cell does not display nothing! Muito Obrigado, -- Roberto Ferreira Junior robefe...@gmail.com 11 98009942 De: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Em nome de MattDale

Django-tables2

2012-08-23 Thread Roberto Ferreira Junior
s_main_page), url(r'projetos/?P\d{1,2,3,4}/edit/', project_edit, name="project_edit"), url(r'projetos/?P\d{1,2,3,4}/docs/', project_docs, name="project_docs"), # Upload File (r'^uploadfile/$', uploadfile), (r'^uploadsuccess/$', uploadsuccess), )

Re: Noob question

2012-08-02 Thread Roberto Ferreira Junior
t; group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > --

Re: Any clue why Facebook iframe would be blank?

2012-06-23 Thread Roberto De Ioris
fix is always reading POST datas when they are available (even if you are not interested in them). Not reading them means your communication socket with the webserver will be clobbered soon or later. If you do not want to change your code you can use the uWSGI --post-buffering option that will autom

  1   2   >