How to?: My micro-isv website, django style

2008-09-22 Thread mamcxyz
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

Re: Django + Active Directory + Firebird DB ???

2008-09-22 Thread mamcxyz
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

Re: Is possible this hack for the admin? Get user & current item in the save

2008-09-22 Thread mamcxyz
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

Is possible this hack for the admin? Get user & current item in the save

2008-09-18 Thread mamcxyz
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

Best wiki for the "support" section of a ISV

2008-08-25 Thread mamcxyz
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 wanna a complete sellout of one of my websites

2008-08-22 Thread mamcxyz
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

Re: Login & Cookie problems

2008-05-13 Thread mamcxyz
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"), -

Login & Cookie problems

2008-05-13 Thread mamcxyz
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

Who has the better support for Sql Server?

2008-05-09 Thread mamcxyz
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?

Re: Some weird. In production, imagen is redirected to images

2008-04-21 Thread mamcxyz
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

Some weird. In production, imagen is redirected to images

2008-04-21 Thread mamcxyz
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

How do the comments/preview?

2008-04-03 Thread mamcxyz
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

Re: One CSS, One JS in production mode for django?

2008-02-18 Thread mamcxyz
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 ;) --~--~-

One CSS, One JS in production mode for django?

2008-02-18 Thread mamcxyz
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. --~--~-~--~~---

How sublcass a form and get the fields not on top?

2008-01-19 Thread mamcxyz
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

Meaning of IOError: [Errno 9] Bad file descriptor

2008-01-18 Thread mamcxyz
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

Re: Need a replacement of pyLucene :(

2008-01-11 Thread mamcxyz
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

Need a replacement of pyLucene :(

2008-01-11 Thread mamcxyz
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

markdown, html2text & pygments clashes

2008-01-10 Thread mamcxyz
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

Re: Recommended tool for web load & stress testing

2008-01-03 Thread mamcxyz
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

How especify the default form (html)

2008-01-03 Thread mamcxyz
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

Recommended tool for web load & stress testing

2008-01-02 Thread mamcxyz
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

Re: How autopostback from a select.

2007-12-30 Thread mamcxyz
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

How autopostback from a select.

2007-12-28 Thread mamcxyz
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

Find city from IP. Best option for python?

2007-12-28 Thread mamcxyz
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

Re: How upload to dynamic folder?

2007-12-21 Thread mamcxyz
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 --~--~-~--~---

How upload to dynamic folder?

2007-12-21 Thread mamcxyz
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

Options to off-load image & video?

2007-12-21 Thread mamcxyz
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

How generate thumbail with png transparency

2007-12-18 Thread mamcxyz
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

User behaviour: Rating + Comments or Rating OR comments?

2007-12-18 Thread mamcxyz
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

Easy to use web load/profiler testing

2007-12-17 Thread mamcxyz
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

Is a bug? When inhclude, block inheritance get lost?

2007-12-02 Thread mamcxyz
I have a base template that do a include: {% if user and not user.is_anonymous %} {% include "core/panel_usr.html" %} {% else %} {% inclu

Re: How do "SELECT * FROm x WHERE Id IN Y"?

2007-11-29 Thread mamcxyz
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

Re: How use splitdatetime?

2007-11-29 Thread mamcxyz
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.

How do "SELECT * FROm x WHERE Id IN Y"?

2007-11-29 Thread mamcxyz
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

Why not get inherited block on template?

2007-11-29 Thread mamcxyz
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

How use splitdatetime?

2007-11-29 Thread mamcxyz
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

How put admin in deployment

2007-11-13 Thread mamcxyz
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? --~--~-~--~~~---

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-31 Thread mamcxyz
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

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-30 Thread mamcxyz
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",

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-30 Thread mamcxyz
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 -~--~~~~--~~--~--~---

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread mamcxyz
> 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

Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread mamcxyz
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

Re: How run a python script as standalone? (aka: Why django need the DJANGO_SETTINGS_MODULE anyway???)

2007-09-06 Thread mamcxyz
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

How run a python script as standalone? (aka: Why django need the DJANGO_SETTINGS_MODULE anyway???)

2007-09-05 Thread mamcxyz
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

Re: Lighttpd advice please

2007-08-28 Thread mamcxyz
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

ANN: New alpha backend for MS Sql Server

2007-08-03 Thread mamcxyz
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

Is possible run silently the pysqlite.exe on windows?

2007-07-06 Thread mamcxyz
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

Again, django and MSSQL

2007-07-03 Thread mamcxyz
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

Re: Implementing OpenID in your Django app

2007-04-24 Thread mamcxyz
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

Re: How-to django and regular CGI?

2007-04-23 Thread mamcxyz
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 --~--~-~--~~~--

Re: How-to django and regular CGI?

2007-04-23 Thread mamcxyz
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

How-to django and regular CGI?

2007-04-23 Thread mamcxyz
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...) --~--~-~--~~~---~--~--

Re: Encoding in models.py (and maybe other files too)

2007-04-18 Thread mamcxyz
> 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 --~--~-~--~~

Re: newforms & UnicodeDecodeError ( 0.97-pre)

2007-04-17 Thread mamcxyz
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

newforms & UnicodeDecodeError ( 0.97-pre)

2007-04-16 Thread mamcxyz
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

Using monit for django ;)

2007-03-09 Thread mamcxyz
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

Using monit for django ;)

2007-03-09 Thread mamcxyz
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

Re: How update and recover on-line a Django site

2007-03-02 Thread mamcxyz
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

Re: About to defect, need MS SQL Server patch for 0.96pre or 0.95

2007-03-01 Thread mamcxyz
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

How update and recover on-line a Django site

2007-03-01 Thread mamcxyz
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

Re: catalog of django apps?

2007-02-16 Thread mamcxyz
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

BdbQuit error

2007-02-07 Thread mamcxyz
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

Re: '001' -> '1' in Sqlite!!

2007-02-02 Thread mamcxyz
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

'001' -> '1' in Sqlite!!

2007-02-02 Thread mamcxyz
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

'001' -> '1' in Sqlite!!

2007-02-02 Thread mamcxyz
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

Re: Tools for writing HTML templates

2007-01-30 Thread mamcxyz
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

Re: Tag "joins"?

2007-01-21 Thread mamcxyz
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

Re: Workflow engine for python?

2007-01-04 Thread mamcxyz
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

Re: Types of projects Django is not well suited for?

2006-12-26 Thread mamcxyz
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

Re: Why does Django think my browser isn't accepting cookies?

2006-12-16 Thread mamcxyz
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 "

Estimate memory/cpu of django?

2006-12-14 Thread mamcxyz
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

Re: Something like Application in ASP for django?

2006-11-16 Thread mamcxyz
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. --~--~-~--~~~-

Something like Application in ASP for django?

2006-11-16 Thread mamcxyz
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

Re: How about a real django installer?

2006-11-14 Thread mamcxyz
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

How about a real django installer?

2006-11-14 Thread mamcxyz
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

Workflow engine for python?

2006-11-09 Thread mamcxyz
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

Incompatible unicode django / mysql

2006-11-01 Thread mamcxyz
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

Re: Best configuration for small VPS

2006-10-24 Thread mamcxyz
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

Re: search engine

2006-10-17 Thread mamcxyz
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

Re: Encoding url for human entered spanish tags

2006-10-11 Thread mamcxyz
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

Encoding url for human entered spanish tags

2006-10-10 Thread mamcxyz
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

Re: Why I'm giving up on Django

2006-09-29 Thread mamcxyz
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. --~--~-~--~~~---~-

Re: Why I'm giving up on Django

2006-09-29 Thread mamcxyz
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

Re: How tune fastcgi for django?

2006-09-29 Thread mamcxyz
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

Re: How tune fastcgi for django?

2006-09-28 Thread mamcxyz
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

Re: How tune fastcgi for django?

2006-09-27 Thread mamcxyz
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

Re: What I lost if run django under Python 2.3?

2006-09-25 Thread mamcxyz
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

How tune fastcgi for django?

2006-09-25 Thread mamcxyz
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

Re: What I lost if run django under Python 2.3?

2006-09-25 Thread mamcxyz
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

What I lost if run django under Python 2.3?

2006-09-22 Thread mamcxyz
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

Re: Djboss? Jyngo?

2006-07-21 Thread mamcxyz
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

Re: Samples for displaying a tree of data

2006-07-14 Thread mamcxyz
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

Re: Samples for displaying a tree of data

2006-07-14 Thread mamcxyz
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

How get user, included in generic views?

2006-07-11 Thread mamcxyz
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

Re: Bug in login method?

2006-07-10 Thread mamcxyz
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

Re: Bug in login method?

2006-07-10 Thread mamcxyz
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

Bug in login method?

2006-07-10 Thread mamcxyz
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

Re: In forms, where get the record created?

2006-07-10 Thread mamcxyz
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

In forms, where get the record created?

2006-07-10 Thread mamcxyz
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   2   >