Ok, I'm doing a new version of a system I made to take orders in
mobile device and I'm working now for reach the global market
(latinamerica, USA & maybe some of europa).
My current website is not very informative. I wanna have a decent ISV
website & plan do it all with django. I'm looking in the
Also, depending in your situation, you can use a "master" database and
use remote views to consolidate the diferents databases and code just
like was a single one. This is a feature on Sql Server and I think is
sure that exist for postgress.
--~--~-~--~~~---~--~~
Yo
Any idea in how do this?
How catch the request on the save method?
--~--~-~--~~~---~--~~
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 unsubscri
Hi,
I have a very small webapp for internal use. Is something like a mini-
POS.
I have a classic invoice form, and I need get the default price for
each product line based on the actual user, the customer & the
inventory price.
I have:
User = Salesman. Each salesman have level from 1 - 3
Cus
I'm working towards a relaunch of my website, with new focus &
products.
I have 1 main product for the consumer (the focus) & resell 6 for the
developers.
I wanna a simpler but profesional face. Also, as now, I'm a solo-
developer so need the more simple aproach. I hope get something like
in the
I'm refocusing my small ISV and wanna get rid of a portal website. I
wanna give the domain, sourcecode, desing with sources, etc. Full
ownership.
Is using django pre-1.0. You can see it a http://www.paradondevamos.com.
I have modules for blog, friends, searching with pylucene, photos,
events & us
For clarification, I use the auth default views and this is my form
code:
Usuario
Clave
Ingresar »
In urls:
url(r'^login/$', 'login', {'template_name': 'core/login.html'},
name="login"),
-
Hi,
I discover & reproduce a problem in the login for my site
www.paradondevamos.com.
The first time when a user try to login, always "fail", and return
back to the login page. If try the second time, work fine.
If try the frist time, close the browser, and try again, work.
If then logout, cl
I submit this patch some time ago:
http://code.djangoproject.com/ticket/5062 (latter turn to
http://code.djangoproject.com/ticket/5246)
However, after get invalidad and the decision to support it elsewhere,
I wonder which have the better support of the external sql backend to
help to improve it?
Thanks, I take a look at your ideas...
--~--~-~--~~~---~--~~
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 emai
Hi,
I have http://www.paradondevamos.com/imagen/ (imagen is the spanish
name of image) and always get converted to /images so I get a 404 for
all the urls.
I have this in my urls:
(r'^imagen/', include('shared.multimedia.urls-image')),
I don't have rewrite rules in apache, and not have a fla
I found when my site www.paradondevamos.com get live that for the
comment contrib app is necesary do a preview.html template.
But the workflow not work when the user is not logged. Appear all the
fields, I fiil it then return to preview, then I do the final post and
get back asking for the user l
I found this:
http://groups.google.com/group/django-users/browse_thread/thread/31d11436b482e43c/a81a71b812d808e5?lnk=gst&q=asset_packager#a81a71b812d808e5
But is not responded ;)
The link provided is reported to not work.
I know I can do this, but I have always the lazy mode on ;)
--~--~-
I wonder if exist a similar toolset as in ruby:
http://synthesis.sbecker.net/pages/asset_packager
The idea is put a single css & js for production mode, maybe with a
timestamp so get cached properly.
I wonder what tools are reliable for this & usable with python.
--~--~-~--~~---
Hi, I have a community website where is important set the city of
difierent things (events, news, etc...).
So, I have this form:
class CityForm(forms.Form):
country = forms.ModelChoiceField(queryset=Country.objects.all(),
help_text=u'País del evento. Para eventos en internet o en varias
ciud
I'm getting this after generate a xml from a semi-csv file. Other
times I get this but not found what this mean.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I think that load the java runtime and setup a jar server could put
the VPS under memory limits.
This have the option to go on facebook, so I must care how load it.
However is a option, thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscr
Hi,
Because the issue here
http://www.opensolaris.org/jive/post!reply.jspa?messageID=192094
I need a working & viable alternative to pyLucene that:
- Work on Solaris & Windows (A must) and maybe linux
- Open source/Free
- Search engine library
- Basic NOT, AND, OR
- Reasonable fast for work und
Hi,
I'm building a site where I wanna let insert sourcecode in the
comments, but then I clean everything to markdown using html2text.
I don't wanna force to use markdown syntax and i setup
http://code.google.com/p/mooeditable/ for the end-users.
However, I get the problem that html2text not pre
I remember use JMeter eons ago. I dislike the clunky interface and the
stability problems...
Maybe is improved now?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send em
I don't know if this question is ignorance or what!
I have 3 forms in the same html. One is for search, another for singup
y anoter for login. I'm in singup, enter the values and hit enter. But
search is executed (so, I get a nasty: Invalid login).
I think this must be a obvious usability proble
Hi,
I wonder what tool let me to do web load & stress testing with this
options:
- Run on Windows, test target are windows & solaris
- Simulate diferent users, with separation of surfers vs content
uploaders (ej: send photos, links, etc)
- Tell me page size & maybe benefits on caching?
- Correla
Great. Thanks!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
F
Hi,
I wanna autopostback when a select change. I know its only set
onchange="this.form.submit()". But using newforms and recent trunk I
can't see if exist a way using this:
{% for field in barra %}
{{ field.label_tag }}
{% autoescape off %}{{ field }}{% endautoescape %}
{% endfor %}
I could bui
I wanna integrate the option to find the city based on the IP. I look
at maxwind and ip2location, both have a free version of the data, but
can't compile the thing under windows.
So, what option could be best?
--~--~-~--~~~---~--~~
You received this message becaus
Nevermind, I look closely the docs:
http://www.djangoproject.com/documentation/modelforms/
The correct way is:
img = Image(author=request.user,slug =
SlugifyUniquely(request.POST['title'],Image))
form = ImageForm(request.POST, request.FILES,instance=img)
That work nicely
--~--~-~--~---
I need separate files by username and I try this trick:
http://gulopine.gamemusic.org/2007/11/customizing-filenames-without-patching.html
For this model:
class Image(models.Model):
title =
models.CharField(u'titulo',max_length=50,blank=False,db_index=True)
slug= models.Slu
I'm close to relaunch www.paradondevamos.com with the options of share
video/images. Is a social-like website for local events & news, with
blogging, news, events & friendship.
I'm looking for alternatives to off-load the images/videos. My
community is starting and have currently 400 members. I d
Hi,
I'm using the thumbail field for autogenerate thumbails. I have my
graphics in png with transparency. However, the transparency is not
saved, I try:
http://snippets.dzone.com/posts/show/1383
and
def pngsave(im, file):
# these can be automatically added to Image.info
dict
# they are
I'm debating myself what could be best for the upcoming redesing of
www.paradondevamos.com in the area of rating & comments.
I know the comments framework have both, but I wonder for a site with
blogs & places related to enterteinment for 16-30 years old people
what could provide the best return
I'm close to launch a redesing of www.paradondevamos.com, with social
& multimedia capabilities.
I wonder what kind of tool let me do load testing against the site.
This is my base config:
- I'm running under joyent "M" virtual server, so Solaris 10, 256 RAM.
- I plan to use nginx as server for
I have a base template that do a include:
{% if user and not user.is_anonymous %}
{% include "core/panel_usr.html" %}
{% else %}
{% inclu
Excellent! That do the trick.
Thank you.
--~--~-~--~~~---~--~~
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 e
You are rigth.
I do bad the import, but anyway get the same error. Also, yes, I
confirm is because I do {{ field }}
The problem was that I pass a Initial date as string, so the code try
to call "value.date' and obviously fail.
However, I must turn off autoescape for the widget to render right.
I have a model of events and city.
class Event(models.Model):
city= models.ForeignKey(City, blank=True, null=True,
core=True, verbose_name='ciudad')
Then, I wanna let the user filter the events by city. But I don't
wanna show ALL the city, because a lot can't have events attached. So
I follow the advice in use a lot of blocks for my site desing, is
truly flexible this way.
However, I have a problem understanding why a parent block not get
rendered. I think is related of use of includes. I have this:
I have the templates inside each app, example:jhonWeb\shared\core
\templates
Hi,
I'm triying to use SplitDateTimeField. I have this form definition:
class EventsForm(forms.Form):
title = forms.CharField(help_text=u'Ingrese el título de la
noticia', required=True, label=u'Titulo')
tags = TagField(help_text=u'Ej: Fiesta, Internet, Jovenes, etc..',
required=True, la
In test mode, I can acces the "admin" site, but when I deploy the site
I can't do it.
Before, I setup another fastcgi process to it, but I think that is
overkill (I must run this under a VPS). Any trick to put admin under
the regular fastcgi process?
--~--~-~--~~~---
I don't call count manually.
I'm doing:
self.assertContains(self.response,u'Fallo el ingreso. Revise su clave
y usuario')
assertContains is part of Django Test framework. ie:
def assertContains(self, response, text, count=None,
status_code=200):
"""
Asserts that a response
I run this script and still get the errors. I think the problem is
elsewhere but how know?
import codecs
import os
DIR = r"F:\Proyectos\Python\jhonWeb\shared\core\templates\core"
arc=os.listdir(DIR)
def write(file,text):
# Open a UTF-8 file in read mode
infile = codecs.open(file, "w",
I use ultra-edit to change all files to utf8 and still get the same
problem.
About the questions:
* The database is sqlite, created by the test runner
* The type of text is unicode (u'http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---
> What's the type and value of "request.content"? What's the type and
> value of "text" ?
self.response=
Doing a self.response.__dict__ I see this relevant values:
'content-type': ('Content-Type', 'text/html; charset=utf-8')}
META:{'CONTENT_LENGTH': None,
'CONTENT_TYPE': 'text/html; charset=ut
I'm in the process to relaunch a django site. I build a dozen test
(finally!) for it and work correctly before.
I update django to changeset 6601 and get a lot of errors. I fix
almost all of them except this:
self.assertContains(self.response,u'Buscar:')
File "D:\Programacion\Python\Python
Yeah, and maybe in mod_python I see the purpose... however why not
doing that to a single import anyway? And for fastcgi and the dev web
server that could by that simply... not?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
I wanna debug inside a IDE (komodo 4) my test cases for django, so I'm
looking for a way to simply run the script from the IDE and step in as
usual.
This is my layout:
F:\Proyectos\Python\jhonWeb <= root inside it:
\demo\ THE SITE with the settings file
\shared\ shared models I have develop to
The best can be get vmware, download that version of linux and play
locally.
Trust me, for newbiews this can be very hard... also that version of
linux is hard to setup than a debian one.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
If want/need support for mssql, I hope this help.
I submit a ticket with patchs for enable a new backend for sql server,
so we can have
a clean direction from the ado_mssql confusion of tickets, and have a
single point for development.
Is at http://code.djangoproject.com/ticket/5062.
I'm workin
I wonder if exist a way to install
http://initd.org/pub/software/pysqlite/releases/2.3/2.3.4/pysqlite-2.3.4.win32-py2.4.exe
using the command line and avoiding the GUI...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I try, with not sucess to apply the patch for make worj django and MS
Sql.
The tickets is a jungle and not see the logic in how is the thing
organized. I'm building a store based in satchmo for integrate a
couple of local ERP system, based in MS Sql, so I have a motivation to
work on it...
Anyb
I like more your aproach (because mix more naturaly with Django I
think)... The code look good but the comments...if my english
is bad my russian is inexistent!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Nevermind. The host only support perl cgi :(.
I don't wanna do this in php! If only existed a php with python
syntax ;)
On 23 abr, 13:44, mamcxyz <[EMAIL PROTECTED]> wrote:
> Yes,I know that but is not supported, only regular CGI
--~--~-~--~~~--
Yes,I know that but is not supported, only regular CGI
--~--~-~--~~~---~--~~
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 thi
A customer need build a quick thing for their website. I wish to use
django but their current hosting only support python with cgi. Is
possible setup the things in this situation ? (Yes, I knwo cgi is more
slow but the site is low-traffic so...)
--~--~-~--~~~---~--~--
> Yes, instead of naming your models with "funky" characters, you can
> always set the verbose displayed name to whatever you need it to be.
The are not funky. Are the normal characters in each labguage. Anyway,
that show too if the "funky" chars appear in "text" so
--~--~-~--~~
Ok, then I wait for it...
Maybe is best try with the branch of permissions for rows?
--~--~-~--~~~---~--~~
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@googlegro
I'm triying to build a custom admin site.
I'm using the newforms library in 0.97-pre.
DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too
utf-8 and the html templates are
.
All the other things work fine using old-forms, including the admin
site.
Also,I can load python manage
Ok,
I was tired to manually restart django in my VPS (have low memory) so
I start to looking around how do it in a automated fashion.
I found monit http://www.tildeslash.com/monit/doc/manual.php and found
it easy:
To help other hewbies around, this is my setup (for Centos):
#Check at 2 min
set
Ok,
I was tired to manually restart django in my VPS (have low memory) so
I start to looking around how do it in a automated fashion.
I found monit http://www.tildeslash.com/monit/doc/manual.php and found
it easy:
To help other hewbies around, this is my setup (for Centos):
#Check at 2 min
set
I'm using lighttpd and fastcgi (sorry to forget the detail)
--~--~-~--~~~---~--~~
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 fro
I don't think is a soo big issue.
If the backend is Sql 2005, you got it. If not, demand that the
developer create a store procedure (document the name and params) and
you got it.
Take in account that the mayority of the times the django model drive
the DB. And if not, anyway stored procedur
I have a site inside a VPS.
Sometimes I need to update the site and other times the memory goes up
(and how know why?) and need manually enter the site and restart.
The site not have big number of visit but I need fix this situation ;)
--~--~-~--~~~---~--~~
You
Other hard points is what to do with common "modules".
For example, I made my own CMS. Then I wanna get Schatmo. Both have
custom-extended user modesl, but both are diferent. Also city,
country, etc...
This is a hard problem. Because is necesary get rid of one of them,
merge both or simply deny
Hi,
I have a view and only in the live site this error happend (I don't
know why the debugger have something to do???)
BdbQuit at /eventos/add/
* /root/django_src/django/core/handlers/base.py in get_response
67. # Apply view middleware
68. for middleware_method in self._vie
Thanks, but I don't use the model. Is a direct insert.
--~--~-~--~~~---~--~~
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 thi
Hi,
I found that in Sqlite when I do:
INSERT INTO Sample (Code) VALUES ('001')
Get converted to '1'
Exist a way to solve it (I don't like the idea of put ' 001' because
that break the integration process with another database)
--~--~-~--~~~---~--~~
You re
Hi,
I'm doing direct inserts, like:
INSERT INTO Vendedor (Codigo) VALUES ('006')
And blindly believe in the database.
Then today I discover Sqlite "transform" it to '6'. That is I call a
shock! Specially when Sqlite declare that all the data is internally
stored as text.
Now, I have a real is
TopStyle is a great tool.
I like the option to preview side by side the page in IE and Firefox.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
I think "+" is intuitive. Slashes represent a tree structure not a sum
of terms.
--~--~-~--~~~---~--~~
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.c
Any docs about how write a workflow engine then?
--~--~-~--~~~---~--~~
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 gro
Things Django is not good idea:
- Building a PHP site.
(But maybe can output the php code ??? But is not nice to do that!)
- Building something like 3D Studio Max
- Next version of Halo
- A native Win32 aplication
- Surely fail to build something like Skype. For that, you need the
power of
I found this exact problem when I use gemini
(http://www.countersoft.com/) and enter django, but only when I request
in gemini a page with their rich text editor...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
Exist any info about estimates values for memory and cpu for django?
--~--~-~--~~~---~--~~
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 unsub
Yes, that is the idea.
I test it, and not work. When the request finalize, the module
dissapear from memory then the global variables.
My hacking way was using a file-lock (create a file, check if exist in
the other threads) but maybe exist other way.
--~--~-~--~~~-
I made a custom installer script that work as in CMS systems like xoops
(if detect is not installed then build the databse, fill data and
config things).
The thing is that the process is fired 3 times when I enter to the
site, and look like the Mysql transaction support is not robust.
I need to
Because 1 day waiting is 1 day with frustration ;)
And because "now and then" look like every developer think the same
that day can be 3 1/2 weeks (real time I spend configuring... errr...
installing things).
Like I say, I do before installers. The last one was for a ERP
system... build the inst
After having troubles configuring a vps linux machine (and still
triying with another) I wonder if exist a effort to build a proper
installer for django.
When I say a installer, I mean a real one. The kind of installer that
know about dependencies and install it (if possible).
For example:
- D
Exist a workflow engine for python as http://wf.netfx3.com/?
I don't need a User GUI because is for plug it into a web service I'm
working on django.
The workflow is pretty simple and work similare to:
Start
-- Get File
-- Run Process1
In parallel:
- Run Task1
- Run Task2
I having this error:
OperationalError: (1267, "Illegal mix of collations
(latin1_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '='")
When I try to run code like this:
City.objects.filter(name='Medellín')
I have a working site where I need to perform a data upgrade, and is
Under a similar memory limit I put lighttpd (more easy on resources)
and use a shared MySql db account (is best than put it on the vps...
the database servers are built for be more robust and probably have
more hardware).
--~--~-~--~~~---~--~~
You received this me
For www.paradondevamos.com (in construction!) I integrate PyLucene... I
test in local machine for 3000+ pages and is good enough for me. None
of the integrated full-text on any Sql server in town can match the
performance and in the case of Lucene, flexibility of a dedicate tool
for the task.
The
Is not clear the question?
The user clasify a restaurant with tags like:
Food/West
Food/North
Music/Rock/Classic
Music/Rock/80
Then, I build a menu and a tag navigation from that..
The issues is that this tags are in spanish and have chars like
"ñ","á" and spaces, and when this is output in ht
I have a site for spanish audience, is like a yellow pages for
restaurants.
I do a mix of hierachy and tag based navigation like:
Comida/Latina/Costa Este
Comida/Típica/Antioqueña
Comida/Rápida
Note the á, í, ñ and space.
I'm confused about how encode and decode this.
I try urllib.quote_plus
I think that can be nice
Specially when is necesary setup other dependencies I know some
things can not be automated easily because the diversity of linux
distros, but something in the lines to show what is need to deploy is a
*good* start.
--~--~-~--~~~---~-
I have some feelings with Django too, however after working two years
with ASP.NET (I'm certified by MS, if that show my commitment) and try
first with Clastle (a try on rails for .NET, but with the non-sense of
java-like framework) I found django.
I hate:
- Deployment. I work on Delphi and the
Mmm
How detect it?
I'm not a linux expert... If I can't run commands in the shell...
But I don't understand why the site works fine if no new process can be
created...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
The fork error is not in lighttpd, is when I login with SSH console...
--~--~-~--~~~---~--~~
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 unsu
Any idea? Is not clear the question?
--~--~-~--~~~---~--~~
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 emai
Ok...
The problem is that i don't be able to compile PIL, I'm getting this
error and behaviour:
http://www.mail-archive.com/image-sig@python.org/msg00859.html
However the instrucctions not fix the problem...
--~--~-~--~~~---~--~~
You received this message becau
I have a Centos 3 server with 128 MB of RAM and a limit of 30
processes... I'm using lighttpd + FastCGI
When I start the server for first time I get 18 process.
When later I need to run some change or restart or something, I get a
error with fork, because the process limit is exhausted.
How cal
What kind of bugs?
My main trouble is PIL, simply I don't can install it under CentOS 3...
--~--~-~--~~~---~--~~
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@goo
I'm configuring a new server with Centos 4 and have installed python
2.3... like you know is tricky upgrade python in Centos and the only
safe workaround is run another python.
I do this for other server but found very painfull manage two python
versions and lost the automatic installing capabili
I too waiting for .NET support...
I try to run a django site and found that os module is not done... so I
think is a large way to go...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
I don't think my code is usefull for you... I build the tree from a
list like:
['uno\dos\tres','dos\tres\cuatro','pepe\papa\pepa']
However the API of elementree es very simple.
A good trick is build a map of son and parents. This way:
self.parent_map = dict((c, p) for p in tree.getiterator() f
I like to use elementtree here... The result tree can be cached and in
the end you have a more usefull representation...
Plus, traslate it to any html tree control become more easy...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
I don't get the USER from context in generic views. I have configured
the context procesors with django.core.context_processors.request, but
not work in generic views...Why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Yes... I figure it later.
Is necesary call authenticate() before login() to work. I Imagine that
do login was enough.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
I need to read more the code...
The trouble is this:
I'm building a singup form. After the form get processed, is not
sufficient call the login() method but also the authenticate, this way:
user =
authenticate(username=user.username,password=request.POST['password'])
login(reque
The login method in django\django\contrib\auth__init__.py
say:
def login(request, user):
"""
Persist a user id and a backend in the request. This way a user
doesn't
have to reauthenticate on every request.
"""
if user is None:
user = request.user
# TODO: It would
Nevermind, I have the profile model using inhiterance.
Forget this.
--~--~-~--~~~---~--~~
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 unsubs
I have this code:
class Manipulator(forms.Manipulator):
default = {}
done = False
def getData(self, request):
return request.POST
def getForm(self, data, errors):
return forms.FormWrapper(self, data, errors)
def process(self, request):
data = self.get
1 - 100 of 145 matches
Mail list logo