Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-06-08 Thread Andre Foote
ril 27, 2021 11:15:57 PM CDT, Andre Foote > wrote: >> >> FileNotFoundError at /admin/region/country/process_import/ >> [Errno 2] No such file or directory: '/tmp/tmpu31qxebf' >> *Request Method*: POST >> *Request URL*: http://myurl/admin/region/country/pr

Re: DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-27 Thread Andre Foote
heritence of folder permissions but that didn't work - any pointers would be appreciated.) However I'm using the default configuration for sessions that's supposed to be database-backed. On Tuesday, April 27, 2021 at 9:52:03 PM UTC+2 Ryan Nowakowski wrote: > > > On April

DEFAULT Django Session is still using File in /tmp (Can't read from directory)

2021-04-27 Thread Andre Foote
I've wired up a Django 3.0.1 Application using the default, DB-backed session configurations. MIDDLEWARE has "django.contrib.sessions.middleware.SessionMiddleware", INSTALLED_APPS has "django.contrib.sessions". During file import (using django-import-export) I see that while session records are

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread fils-aime walnes andre
Merci freo Le lundi 21 octobre 2019, adonis simo a écrit : > > # Generated by Django 2.2.3 on 2019-10-21 22:00 > > > > from django.db import migrations, models > > import django.db.models.deletion > > import django_extensions.db.fields > > > > > > class Migration(migrations.Migration): > > > >

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread fils-aime walnes andre
Merci freo Le lundi 21 octobre 2019, adonis simo a écrit : > > # Generated by Django 2.2.3 on 2019-10-21 22:00 > > > > from django.db import migrations, models > > import django.db.models.deletion > > import django_extensions.db.fields > > > > > > class Migration(migrations.Migration): > > > >

Re: Setting up admin in visual studio

2018-11-05 Thread Holger Otto ANDRE
I don't get what you mean by admin page. BTW don't get confused 1) Visual Studio 2017 (what I uses for Python projects) 2) Visual Studio Code ( an very versatile editor from MS as well) Both can be used for Python development. *Holger André* Skype: hjoab1 Mobile/Whatsapp/Telegram : +(506) 8883

Re: Experienced django developer is needed.

2018-10-25 Thread Holger Otto ANDRE
Hello Can you give me more detials? regards *Holger André* Skype: hjoab1 Mobile/Whatsapp/Telegram : +(506) 8883-9645 Website: https://www.linkedin.com/in/hjoab/ San José, Costa Rica, Central America. The information contained in this e-mail is pr

Re: I Suck

2018-10-24 Thread Holger Otto ANDRE
Hello Weird !!! I just began the last week and I found it piece of cake. I am using Visual Studio 2017 community (its free) and you can find in MSDN and Microsoft Academy very simple to follow tutorials and samples You can give it a try *Holger André* On Wed, Oct 24, 2018 at 8:35 AM Edson Rodr

Re: Django ORM - better handling of connections

2018-05-14 Thread andre
Hello Simon. On Monday, May 14, 2018 at 6:15:50 PM UTC+1, Simon Charette wrote: > > > Is there a way to force Django to close the DB connection after each > operation (unless we're in an atomic block)? > > The only way I can think of achieving that is by bundling your own > database backend subc

Django ORM - better handling of connections

2018-05-14 Thread andre
Hello. For the last 6 years I've been using gevent's greenlets to serve Django requests, instead of tying up a thread or a process, and this has served me well for web applications that deal with slow streaming clients, or have to call some slow external services mid-request, or are just IO-bou

Re: Following tutoria: View not defined

2017-10-29 Thread Andre Basel
Thanks again :) That was it. On Monday, October 30, 2017 at 10:56:34 AM UTC+13, cjacq...@gmail.com wrote: > > Did you try http://127.0.0.1:8000/hello/ ? > > Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit : >> >> I am totally new to Django, and worki

Re: Following tutoria: View not defined

2017-10-29 Thread Andre Basel
n urls.py file like this: > > > from django.conf.urls import url > from django.contrib import admin > > from yourapp.views import *hello* # <<<<<< > > urlpatterns = [ > url(r'^admin/', admin.site.urls), > url(r'^hello/$', hello), > ]

Following tutoria: View not defined

2017-10-29 Thread Andre Basel
I am totally new to Django, and working through the following tutorial https://djangobook.com/views-urlconfs/ Ihavecreatddf the following view in views.py from django.http import HttpResponse def hello(request): return HttpResponse("Hello world") And then as per the tutorial updated urls

Re: Installing Django

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

Re: Please help me

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

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

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

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

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

Re: No module named MySQLdb

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

Re: How to install Django on Windows article

2016-01-29 Thread Carlos Andre
1º download a version django (admint who python intaled); 2º unzip the django in your prefer path; 3º acess that path with cmd; 4º insert: setup.py install 2016-01-29 8:29 GMT-03:00 Rafael E. Ferrero : > Never occur to me in Win8.1 ... why not install VirtualBox with an Ubuntu > or other flavo

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

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

Re: django project exe

2016-01-22 Thread Carlos Andre
nded, start and stop > the buildin django server with your little .exe > > > > Rafael E. Ferrero > > 2016-01-22 9:34 GMT-03:00 Carlos Andre : > >> Hi to all, i want do my project in django, run as exe in localhost. The >> motivation, the client who want this! >>

django project exe

2016-01-22 Thread Carlos Andre
Hi to all, i want do my project in django, run as exe in localhost. The motivation, the client who want this! Thanks to all! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send a

Re: how upload and display image on page using Django

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

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

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

garantir acesso a usuários somente para seus dados

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

Crente usar o django 1.3

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

Mysql blob field and django

2015-09-09 Thread Andre Jonker
I use python 3.4.2 + django 1.8 + Mysql database. + Table persons with blob fields in which a photo of a person My question is how can I retrieving and saving a photo with django. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

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

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

Re: Label in Charfield

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

Re: Values from class to class

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

Re: Values from class to class

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

Re: Values from class to class

2015-07-07 Thread Carlos Andre
0, default = p.qtdade ) 2015-07-07 4:08 GMT-03:00 James Schneider : > Can you give a simple example or analogy of what you are trying to do? > > -James > On Jul 6, 2015 5:29 PM, "Carlos Andre" wrote: > >> Hello to all , I need to solve a problem. I have two classes

Values from class to class

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

Re: heavy refactoring

2015-06-11 Thread Andre Avorio
Hi Mike, I had the exact same problem and after investigating I ended up creating a new app from scratch and porting the code and data across. I don't remember finding any specific documentation on this on Django's website. Did I miss something, or should we consider adding a couple of notes on

Re: syncdb error with Mysql database on Windows 7

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

Re: trouble initializing the website

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

Re: trouble initializing the website

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

Re: inicio en django

2014-07-26 Thread Carlos Andre
ir até a pasta com o prompt:(admitindo que salvasse o django no desktop) cd c:\user\NOMEUSUARIO\desktop\Django-1.6.5\python setup.py install 2014-07-26 19:27 GMT-03:00 Carlos Andre : > se é no ubuntu, poderia ser sudo apt-get install python-django; > se é no windows, use o prompt de com

Re: inicio en django

2014-07-26 Thread Carlos Andre
se é no ubuntu, poderia ser sudo apt-get install python-django; se é no windows, use o prompt de comando e vá até a pasta do django que baixasse, em seguida faça pyhon setup.py install ele instalará o django! 2014-07-26 17:10 GMT-03:00 juantonio v : > hola tengo el Django-1.6.5.tar.gz de django,

Re: import django fails, what should I look at?

2014-07-25 Thread Andre Terra
On Sun, Jul 20, 2014 at 12:57 PM, Andre Terra wrote: > pip install -e git#https://github.com/django/django.git For the record, the right command is pip install -e git+ https://github.com/django/django.git#egg=django -- You received this message because you are subscribed to the Google Gro

Re: slide show

2014-07-22 Thread Carlos Andre
please! i need run that! 2014-07-22 11:43 GMT-03:00 Carlos Andre : > I already have a slideshow ready but missing is using the image to be > added in the admin to pass the slide! > > > > 2014-07-22 10:50 GMT-03:00 Tom Evans : > > On Tue, Jul 22, 2014 at 10:38 AM, Carlos

Re: slide show

2014-07-22 Thread Carlos Andre
I already have a slideshow ready but missing is using the image to be added in the admin to pass the slide! 2014-07-22 10:50 GMT-03:00 Tom Evans : > On Tue, Jul 22, 2014 at 10:38 AM, Carlos Andre wrote: > > Hello guys, I'm needing to create a slide of images that come from t

slide show

2014-07-22 Thread Carlos Andre
Hello guys, I'm needing to create a slide of images that come from the / media / folder, the structure of the slide is ready, missing how to reference images in the templates here are the codes views.py, models.py and of the slide in html https://gist.github.com/eucandre/1be6120bf51a09a5a62a can

Re: import django fails, what should I look at?

2014-07-20 Thread Andre Terra
You should use pip to install django. This is how I go about it, from a fresh install. mkdir ~/virtual mkdir ~/projects pip install virtualenv # unnecessary in python 3.3+ pip install virtualenvwrapper # use this. it will make your life much simplerecho "export WORKON_HOME=$HOME/virtual" >> ~/.ba

imagens com django templates

2014-07-14 Thread Carlos Andre
Olá pessoal, estou tentando usar um slideshow e uso um for para iterar as imagens que passam vidas de um repositório, problemas que funciona sem o comando for no template, quando adiciono ele mostra nada para! Pelo que vejo há problemas no reconhecimento dos comandos de templates, caso como o que t

Re: Criar slideShow

2014-06-25 Thread Carlos Andre
-24 21:50 GMT-03:00 Carlos Andre : > >> Olá pessoal, tudo bem com todos? >> Gostaria de uma solução que permita referenciar fotos para m slideshow >> com até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id! >> Obrigado pela atenção de todos! >> >&

Criar slideShow

2014-06-24 Thread Carlos Andre
Olá pessoal, tudo bem com todos? Gostaria de uma solução que permita referenciar fotos para m slideshow com até no máximo 5 fotos que seguirão ordem de inserção! tipo usando um id! Obrigado pela atenção de todos! -- You received this message because you are subscribed to the Google Groups "Djang

Re: Anyone interested in reviewing the code of a small project - BookMarker

2014-05-26 Thread Andre Terra
Why are you using the webbrowser library? I don't see how it makes sense.. Cheers, AT On Mon, May 26, 2014 at 12:32 PM, Aseem Bansal wrote: > Thanks Shmengie. I was thinking of using class based views as it was > pointed in tutorial that they are better but I was not sure which ones are > goo

Re: django output pdf problem

2014-04-24 Thread Andre Terra
Relevant Stack Overflow question/answer: http://stackoverflow.com/a/9970672/447485 In short, you can't do it over simple Ajax, but you can emulate it. Cheers, AT On Thu, Apr 24, 2014 at 8:56 AM, Tom Evans wrote: > On Thu, Apr 24, 2014 at 4:31 AM, 张永强 wrote: > > > > In my program, I want to

Re: recommended fcgi way for django 1.6 on windows? Problems with https

2014-04-14 Thread Andre Terra
I've used nginx in windows with great results. In fact, I even compiled it on cygwin with additional modules (namely, to track large file uploads) and everything worked smoothly. Cheers, AT On Mon, Apr 14, 2014 at 1:48 PM, anton wrote: > Hi > > I did a test with modwsgi on windows with apache

Media files django 1.5

2013-12-29 Thread Carlos Andre
hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem still insists! have something new to be configu

Re: How do I use mathematical calculations on my forloop Article/Publication list?

2013-11-23 Thread Andre Terra
Take a look at the docs for aggregation and annotation and using F expressions in them. I just skimmed over your email, but there might be something useful to learn there. https://docs.djangoproject.com/en/dev/topics/db/aggregation/ https://docs.djangoproject.com/en/dev/ref/models/queries/#f-expre

Upload de musicas (music upload)

2013-09-16 Thread Carlos Andre
Olá pessoal, tudo bom? Eu gostaria de uma ajuda de como fazer upload de músicas no banco de dados, como faço upload de arquivo. Gostaria de exemplos. Hello guys, how are you? I would like some help on how to upload songs in the database, how do I upload file. I would like examples. -- You receiv

Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Andre Lopes
Hi all, I'm stuck with Django hosting. I've A2hosting but the Django hosting is not good at all. They use FCGI and Passenger and both have a problem. If I'm more than 15min without doing a request to the site, the first request is very slow and most of the time will do an Internal Server Error.

Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Andre Lopes
I'm visiting the Heroku webpage. I can get freehosting there. Any experience on what can I get from Heroku freehosting. The website have 5/10 visits a day. On Tue, Sep 10, 2013 at 10:57 PM, Avraham Serour wrote: > try webfaction or digitalocean > > > On Wed, Sep 11, 2013 at 12:5

Django-Registration compatible with 1.5.2?

2013-09-08 Thread Andre Lopes
Hi, I need to user a registration app for Django 1.5.2. I'm a little bit confused on what app to use. Currently django-registration(https://bitbucket.org/ubernostrum/django-registration) is compatible with Django 1.5.2? If not, what app should I use? Best Regards, -- You received this messa

Re: Prefork vs threaded when I want to spawn my own threads

2013-09-04 Thread Andre Terra
On Wed, Sep 4, 2013 at 2:36 PM, Javier Guerra Giraldez wrote: > above that, Redis is a clean, fast and very scalable platform for > queues. if you don't have heavy buzzword dependency, i wouldn't > bother checking AMQP systems and stay with Redis. > A thousand times this. You don't need AMQP sys

Re: quick question: RE model relations

2013-09-02 Thread Andre Terra
gument to the definition for > 'GalleryId'. > events.event: Reverse query name for field 'GalleryId' clashes with > related field 'Gallery.Gallery_Id'. Add a related_name argument to the > definition for 'GalleryId'. > > > now i'm really lo

Re: quick question: RE model relations

2013-09-02 Thread Andre Terra
As per the current docs[0], you need to provide a dotted path to your model in the form app.ModelName when defining a ForeignKey. So try this instead: GalleryId = models.ForeignKey('galleryview.Gallery', verbose_name=_('Gallery Id'), related_name='Gallery_Id',blank=True, null=True, help_text=_("Y

Re: I really about to give up Django

2013-09-02 Thread Andre Terra
*Non sequitur*. Obscure variable names can happen regardless of the coder's language choice, and most definitely do not encourge the use of one's native tongue. As others have said in the thread, if you're writing *in English* to ask for help, you should probably code in English as well. It's not

Re: JSON or YAML?

2013-08-30 Thread Andre Terra
It depends on where your data is coming from. YAML has less cruft in it, so if you're writing your own serializer you can consider it to have an advantage over JSON. OTOH, many applications can already export to JSON, so you can leverage that if that's the case. Finally, If you're writing anythin

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Andre Terra
On Mon, Aug 26, 2013 at 1:19 PM, Natko Perko wrote: > @laurent i guess it worked, but now i get the error no module named > wikicamp.wiki.. this is all the code i have so far.. make sure the folder containing wikicamp is inside your PATH so you don't get import errors. make sure there's an __in

Re: I really about to give up Django

2013-08-22 Thread Andre Terra
For the record, it's considered a good coding practice to keep everything in English, including classes, functions and variables. This way it's easier for people to help you. Secondly, your Filhos model should really just be Filho. Finally, don't use obscure names like Brinq. Instead, prefer the

Re: connecting to MS SQL server in addition to default MySQL

2013-08-07 Thread Andre Terra
You can use django-mssql[0] as a backend, and then either use the ORM as usual, write RAW queries with Django[1] or just use SQL directly[2]. Cheers, AT [0] http://django-mssql.readthedocs.org/en/latest/ [1] https://docs.djangoproject.com/en/dev/topics/db/sql/ [2] https://docs.djangoproject.com/

Re: Impossible? Django with NTLM SSO auth on windows?

2013-07-31 Thread Andre Terra
On Sun, Jul 7, 2013 at 5:01 PM, Yves Rausch wrote: > Hello guys, > > we had a similar issue and created a new module on apache 2.4 where you > can use ntlm authentication on a windows machine. > Here is the binary download and some information (including a link to > github repository): http://www

Re: Django Dashboard

2013-07-30 Thread Andre Terra
On Tue, Jul 30, 2013 at 3:16 PM, Charly Román wrote: > > You can try with pydashie, a python port of ruby version: > https://github.com/evolvedlight/pydashie Except that's Flask, not Django. Cheers, AT -- You received this message because you are subscribed to the Google Groups "Django us

Re: Is Celery the best option?

2013-07-19 Thread Andre Terra
I had never heard about Rq before, seems interesting indeed! Thanks for the recommendation. Cheers, AT On Fri, Jul 19, 2013 at 4:04 PM, Doug Ballance wrote: > Celery is a good option, and probably the most used. There are a couple > of other options that may be worth looking into: > > Huey

Re: rich text editor

2013-07-18 Thread Andre Terra
You're welcome! We're here to help. Glad to be of service. Cheers, AT On Thu, Jul 18, 2013 at 3:59 PM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > Thank you so much!!! I will try it for sure! Thanks again! > > > On Fri, Jul 19, 2013 at

Re: rich text editor

2013-07-18 Thread Andre Terra
else. Please explain. > Liked "Impossible is nothing™" > > > On Thu, Jul 18, 2013 at 10:44 PM, Andre Terra wrote: > >> Impossible is nothing™, but I don't see the benefits of combining rich >> text with social networking. Things like BBCode[0] usually of

Re: rich text editor

2013-07-18 Thread Andre Terra
Impossible is nothing™, but I don't see the benefits of combining rich text with social networking. Things like BBCode[0] usually offer a better trade-off between flexibility/usability/maintenance. Based on a quick google search, it seems there are solutions tailored for use with Django [1][2] [0]

Re: Change template block via AJAX

2013-06-30 Thread Andre Engelbrecht
What I normally do is to have a include template that contains only the content I would like to render. I example: {% block page_content %} {% include 'xhr_page_content.html' %} {% endblock %} Using this approach you have isolated the content. Loading the page without ajax wil

Re: A PHP framework with some Django features?

2013-06-28 Thread Andre Terra
I've heard good anecdotes about http://laravel.com/... but I'd never ever leave Django... Cheers, AT On Fri, Jun 28, 2013 at 12:52 PM, Deepak Kumar wrote: > I have used symfony2 quite a bit and as very rightly said by *Tiago > Almeida *in the thread below that SonataAdminBundle (in sf2 contex

Re: Django Basics

2013-06-14 Thread Andre Terra
You really *should* use a database, even if you use SQLite just for learning. SQLite saves a .db file to your hard drive, but it's a RDBMS like many other, albeit in simpler form. Take a look at the tutorial[1] and if you have any questions, try googling, asking here or on stackoverflow[2] Cheer

Re: warnings.warn("The Databrowse contrib app is deprecated", DeprecationWarning)

2013-06-11 Thread Andre Terra
Hi, Snake The databrowse contrib app has been deprecated since 1.4, but it's still available as an external library[0]. Please read the release notes for that version to know more about that. [1] Cheers, AT [0] https://pypi.python.org/pypi/django-databrowse [1] https://docs.djangoproject.com/

Re: Django with 2 subapps with same name

2013-05-15 Thread Andre Terra
Despite possibly working with different app_labels, I believe the point still stands that if the storage and invoice apps share a lot of functionality among vendors, they should just be 'invoice' and 'storage' and allow for pluggable companies. Cheers, AT On Mon, May 13, 2013 at 12:02 PM, Tom Ev

Re: Django with 2 subapps with same name

2013-05-10 Thread Andre Terra
Granted this structure doesn't seem reasonable. Each manufacturer shouldn't be a separate app, but rather "backends" to generic storage or invoice apps. So you only need INSTALLED_APPS = ( # ... 'storage', 'invoice' ) And then work from there. The apps themselves should be able to reg

Re: Dynamic forms and related models.

2013-05-09 Thread Andre Terra
On Wed, May 8, 2013 at 6:43 PM, noodlygod wrote: > > > < > Class Level (Text field)> > Definition.objects.filter(category__label='Skill'))> field)> > Definition.objects.filter(category__label=Attribute'))>< Attribute score > (Text field)> > > I was on my way to creating a fully custom form in

Re: Admin pagination not digg-style

2013-04-24 Thread Andre Terra
Override the default template and add a for loop with {% forloop.counter %}'s from 0 to max-pages or whatever the variable is called. Assuming you're talking about the change form, please see this: http://stackoverflow.com/a/3729995/447485 Otherwise you can still probably work from the info provi

Re: e commerce django framwork

2013-04-03 Thread Andre Engelbrecht
I've not used Satchmo myself, so I can only say what I've heard others say. Some people like it, many don't. As far as I understand it's quite a monolith (someone correct me if I'm wrong pls). There is another project called satchless, which is aimed at providing you with all the building blocks

Re: Navigation Bar

2013-03-27 Thread Andre Terra
In my last project I created a template tag that would take an app name as an argument and build the links according to that user's permissions for the links in that app. This made the template easier to read at the cost of having to write the function and learning how it worked. Since I was the on

Re: Is file based cache is safe for concurrent process?

2013-03-26 Thread Andre Terra
safe or not, it is slow. why not use redis? On Tue, Mar 26, 2013 at 9:57 PM, Ivan Smirnoff wrote: > Hi all. > Can anyone tell, does django.cache locks file for writing by concurrent > process? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gro

Re: Using values_list and extra on same queryset

2013-03-26 Thread Andre Terra
Could you provide us any examples or code at all? Cheers, AT On Tue, Mar 26, 2013 at 7:51 PM, Larry Martell wrote: > I have some existing code that calls values_list on a queryset. I need > to add something using extra to this queryset. If I call extra before > values_list the extra stuff is go

How to retrieve an object from a custom template tag?

2013-03-16 Thread Andre Lopes
Hi all, I'm trying to retrieve an object from a custom template tag. This is possible? I explain here with details what I'm expecting to do? http://stackoverflow.com/questions/15450003/django-how-to-retrieve-an-object-from-a-custom-template-tag Any clues? What is the best way to avhieve this?

Re: What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread Andre Terra
This is a much better explanation on the use of *args and **keywordargs (**kwargs) http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/ On Thu, Mar 14, 2013 at 6:22 PM, Andre Terra wrote: > About the asterisks, please checkout this link: > > http://stackove

Re: What is the difference between instance.title = attrs.get('title', instance.title) vs instance.title = attrs['title'] ?

2013-03-14 Thread Andre Terra
About the asterisks, please checkout this link: http://stackoverflow.com/questions/4306574/python-method-function-arguments-starting-with-asterisk-and-dual-asterisk the difference between dict['key'] and dict.get('key', 'something') is that the second doesn't raise a KeyError exception when 'key'

Re: How can use the prepare method?

2013-03-13 Thread Andre Lopes
Sorry, I've forgot to mention that this is related with Haystack. On Wed, Mar 13, 2013 at 1:16 PM, Andre Lopes wrote: > Hi, > > I'm trying to use the prepare method on the index to loop a related > model. But I just can't get it to the "Text" field of

How can use the prepare method?

2013-03-13 Thread Andre Lopes
Hi, I'm trying to use the prepare method on the index to loop a related model. But I just can't get it to the "Text" field of the index. Here is the code: http://dpaste.org/c3b1z/ I'm doing somethinf wrong? Best Regards, -- You received this message because you are subscribed to the Google Gr

Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-04 Thread Andre Terra
FYI, I found a nginx module for Kerberos authentication too: https://github.com/fintler/nginx-mod-auth-kerb http://michaelshadle.com/2010/01/17/spnego-for-nginx-a-start-at-least It hasn't been updated in quite some time, but it is apparenlty working and perhaps one of you will feel like taking a s

o models possui foreing key! para forms e views?

2013-02-16 Thread Carlos Andre
Olá pessoal mais uma vez postando já está chato, eu entendo! Olhem só: O models.py class Base(models.Model): nome=Char class endereco(models.MOdel): rua=Cha... class registro(models.Model): registro= Cha... individuo = Foreignkey(Base)

Designing the email processing system. What path should I follow?

2013-02-15 Thread Andre Lopes
Hi all, I'm building a Django website. Currently I'm searching for the best way to design the email processing system. The website is a Ads site. I need to send emails in a regular basis to the users. I'm looking for 20 or 30 e-mails hour for now. In other projects, I've been using a database ta

forign key no forms

2013-02-10 Thread Carlos Andre
Olá pessoal! Olha, preciso que um foreign key seja acessível com o forms! Tentei de algumas maneiras e não consegui! materiais também não tão sucintos! alguém pode me ajudar com essa questão? Obrigado pela a atenção! -- You received this message because you are subscribed to the Google Groups "

Re: IntegrityError when creating a brand new model instance

2013-02-08 Thread Andre Terra
Please post traceback, settings.py, etc. On Fri, Feb 8, 2013 at 5:18 AM, Some Developer wrote: > I have a model for a Tag object with simply has two fields. A title (which > has the unique constraint) and a description. I also have a FormView based > view class which handles the creation of Tag o

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Andre Terra
I don't have any experience in interviews for developer positions, but I have general job interview tips that you might like. First, get to know your resumé. This is my #1 advice. Interviewers usually want to know why you made your decisions. What was the reason behind picking this or that school?

Re: django support for ms SQL

2013-01-31 Thread Andre Terra
http://django-mssql.readthedocs.org/en/latest/ Cheers, AT On Thu, Jan 31, 2013 at 11:34 AM, wrote: > is there any support for MS SQL ? > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

Re: Long url parameter in GET request locks python

2013-01-30 Thread Andre Terra
I posted this answer on SO and thought I should share it here for the benefit of other and future readers: -- The accepted answer is spot on about the regex, but since we're discussing optimization, I thought I should note that

Upload multiple files using Ajax

2013-01-22 Thread Andre Lopes
Hi, I need to develop a form to upload multiple files. I was thinking in using an Ajax uploader. I have google some options but there are to many and I don't know which one to choose. Any recommendations about this subject? Best Regards, André. -- You received this message because you are su

Re: django: creating tag groups

2013-01-18 Thread Andre Terra
I'd just like to emphasize that django-mptt is *the* way to go. It's one great application that make it a breeze to work with hierarchies. Cheers, AT On Fri, Jan 18, 2013 at 4:01 AM, Sammael wrote: > Amirouche, thank you very much. > jQuery solution is quite interesting but it's more complicat

Django Formsets - How to build a formset correctly and validade it?

2013-01-11 Thread Andre Lopes
Hi all, I'm struggling with Formsets. I've read the documentation and lots of information on the web, but I'm experiencing some difficulties on get them working. I've wrote a StackOverflow question that explains my difficulties. http://stackoverflow.com/questions/14280875/django-formsets-how-to-

How to get self.id when saving a new object?

2013-01-09 Thread Andre Lopes
Hi, I'm without a clue on how to get the sef.id when creating a new object in Django. I've created a question in StackOverflow. Can someone give me a clue on this subject? Please read the question: http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object Any

How to call a database function from Django?

2012-11-08 Thread Andre Lopes
Hi all, I need to run a script once a day. The script basically will call a postgresql function. I've google and I found a solution just like this. The problem is that does not work. [code] import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from myapp.models import * MyModelClass.object

  1   2   3   4   5   6   >