Re: can i use sqlite for big project?

2015-06-26 Thread Alon Nisser
Using sqlite would bite you in many way, not really transactional for example, some features (such as certain variation of ```distinct```) not supported etc. Use Postgresql, If you find it hard to setup you can use RDS (that has amazon web services offer of postgresql) or heroku postgresql -

Re: how to get get-pip.py

2015-06-04 Thread Alon Nisser
1. Please, This is an open source community, with people answering questions here on their free time (no one here is getting payed to answer). so no need for the BOLD Frustrated type. 2. Specifying you are on windows from the beginning would help, Lots of us are using different flavors of

Re: Uncaught TypeError: Cannot read property 'value' of null

2015-03-18 Thread Alon Nisser
Does the browser support getElementById? old browsers don't support it.. If not the your aren't really adding the input tag in the same page where you run the js script. The js by it self is valid (if an element with this id exists, and only one of course).. On Tuesday, March 17, 2015 at

Re: Need to search through several tables using one model

2014-12-13 Thread Alon Nisser
You could also create a model that foreign keys to all the relevant models, and filter on that.. Buy first you need to clarify (for your self..) The exact use case: is it search? if so better use haystack with some search backend (elasticsearch would be a great choice), Is it to choose

Re: Django 1.7 opening one database connection for each request

2014-09-10 Thread Alon Nisser
First of all - I would advice you to downgrade your production site back to the working django version you know and *after that , Check your site compatibility (including all third party libs and apps) *to django upgrade in a staging environment.. On Wednesday, September 10, 2014 8:32:24 AM

Stuck on Tutorial-- can't import Question

2014-05-05 Thread Alon Nisser
Try to import Question from the shell. python manage.py shell >>from polls.models import Question I guess you have a typo in the model that raises the import error. If it does import in shell then you have some other issue -- You received this message because you are subscribed to the Google

Re: Production django server : NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.

2014-04-21 Thread Alon Nisser
Why did you specify production server? does the code work correctly on a staging/development server? Is this error only in the production server? If so, probably a configuration Issue On Saturday, April 19, 2014 2:25:04 PM UTC+3, 董健 wrote: > > i got NoReverseMatch when deloy cartridge to the

Using Redis as a DB backend for some models (not a caching backend!)

2014-03-14 Thread Alon Nisser
Can I use redis as a django database for some of my models? I'm aware (and using) caching with django and redis, but I'm looking for something else here: Something I can use at least some of the orm features with, handle a django Model, etc. I found

Re: Django with rabbit (but without async celery) - can be done?

2014-02-26 Thread Alon Nisser
:50 PM UTC+2, jondbaker wrote: > > Could you write a RESTful API in your Django project, and then issue POST > requests to that from a middleman script that the mq could communicate with? > > JDB > > > On Tue, Feb 25, 2014 at 8:28 AM, Alon Nisser <alon...@gmail

Re: Django with rabbit (but without async celery) - can be done?

2014-02-26 Thread Alon Nisser
ething (a process) > sending a message through rabbitmq with data that needs to be written to > the DB, now, this needs to be synchronized, sync with what? an http > request? ordered execution of writes? > > Regards, > Carlos Ruvalcaba > > On Tue, Feb 25, 2014 at 8:28 AM,

Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Alon Nisser
I need to implement a quite simple Django server that server some http requests *and *listens to a rabbitmq message queue that streams information into the Django app (that should be written to the db). the data *must* be written to the db in a synchronized order , So I can't use the obvious