Re: Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar Arunachal Service
Thank u so much! Now i know django is my way to go. On Sun, Apr 21, 2013 at 10:28 AM, Shawn Milochik wrote: > I don't think there's any kind of site you *can't* make with Django. It's > a Web framework, not a CMS. > > It's definitely possible (and trivial) to offer a wide variety of > templates

Re: logging within celery processes

2013-04-20 Thread Shawn Milochik
I don't know the solution, but we had the same problem. We ended up dumping Celery in favor of rq. It's much easier to work with and we were already using Redis as a back-end. If you do figure out the solution to this, please post it here. Also, consider rq. We used Celery quite a bit and the chan

Re: Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Shawn Milochik
I don't think there's any kind of site you *can't* make with Django. It's a Web framework, not a CMS. It's definitely possible (and trivial) to offer a wide variety of templates. It's also possible to allow a user to customize and save a template, but that comes with a whole host of security risks

Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar
Hello everyone! I am really a newbie in the django world, and it might be to much to ask now this question, but am just curious. So, is it possible to make websites like Squarespace or wix where the user can itself choose the template or customize it later on, and also that a programmer can cha

logging within celery processes

2013-04-20 Thread Mike
I'm trying to get logging to work from within my celery process. I have set: CELERY_SEND_TASK_ERROR_EMAILS = True in settings.py within the process I am logging to level INFO: logger.info('some info') I launch the process using supervisor: python manage.py celery worker --loglevel=ERROR The

Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Kurtis Mullins
Both Michael and Shawn are spot-on in terms of scaling and using the queuing. However, I'd like to add that 5 seconds to complete a single task like this seems way too slow to me. I don't have much experience with sending SMS but if you're using an external SMS API, it should be extremely quick. I

Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Shawn Milochik
In addition to Michael's good comments: I suspect you won't have 100,000 tasks coming in every second of every day. If you have to send out SMS messages and some of them take a few minutes to go out, that should be fine for most purposes. In addition, some SMS services have some limit per minute/h

Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Michael Hernandez
RabbitMQ with Celery is a distributed asynchronous code execution service. Keyword Distributed. The best thing to do in run several instances per machine of djcelery behind a supervisord. When you start encountering performance hits start by adding more services on the machine with supervisord.

Re: IDE to practice django template language

2013-04-20 Thread sparky
I second PyCharm, I'm new to Django too it works well for me :) On Friday, April 19, 2013 2:03:19 AM UTC+1, Srinivasa Rao wrote: > > Hi, I am new to this djnago, can you suggest any > development environment to practice template language. thanks,Srini -- You received this message because you ar

How many workers do you run on one machine using django celery?

2013-04-20 Thread sparky
Quick question, just so I can compare, I would really like to hear other devs experience. *How many workers do you run on one machine using django celery?* I'm running 3 workers on an EC2 small instance. It takes around 5 seconds to complete 1 task running all 3 workers, does this sound right

Re: IDE to practice django template language

2013-04-20 Thread yati sagade
I would suggest the OP to gather from this thread that a reaching general consensus about this topic is impossible, and would request others to stop the thread here, as there's no point continuing except that the OP might possibly come to know about stuff they previously did not, but the Web is ful

IDE to practice django template language

2013-04-20 Thread Michael Hernandez
Emacs???. IM not being a smart ### . I just feel it has everything you need. Like terminal Shell. It is bad for multiethnic files like html with Javascript in it. Unless you customize it further -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: defining guid, permalink for feeds and site

2013-04-20 Thread Michael Hernandez
Yes that is a great idea. create a base model that inherits from models.Model add the method into it. Any model that can be slugified and access directly should inherit from this Make sure to use model.pk in building the slug, it will always be the primary key, rather than model.id which could

defining guid, permalink for feeds and site

2013-04-20 Thread surya
In our website, for short urls we are using a different domain name.. So, get_absolute_url() in model methods uses django.core.urlresolvers.reserve() and thus returns the actual domain name Till now we have been manually defining short urls in views like permalink = settings.SPC['short_URL_roo

Re: Can't enter admin site

2013-04-20 Thread Michael Hernandez
Tom is right URL regexp is one of the more difficult aspects a feel for beginners. ^ means to match the following characters at the start of the haystack r"^" will properly match "/admin" "/static" "/joogabooga/realm/1?x=1" however if you are having trouble with figuring out the regexp there i

Re: Add user to authors on model save in admin form

2013-04-20 Thread Michael Hernandez
I do not think having Author = model.ManyToMany will work. A user is an author. An author is a user. This is a one to one a.k.a models.ForeignKey(User) A blog has many authors, of which each is a user. And Many Authors can write on a blog Blog.author = models.ManyToMany(Author) On Friday, Apr

Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Michael Hernandez
Yes. Proper root referencing requires the preceeding / in /a/b The django way i have seen is to generally create a /static/ directory Put /static in your static settings rather than /static/assets place your files in respectively named directories such as /static/js /static/css /static/images

Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Paras Nath Chaudhary
Yeah Sanjay you're right. my mistake that should be ( /static/ ... instead of static/ ... ) for > Thanks for correcting me. -- 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

Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Sanjay Bhangar
On Sat, Apr 20, 2013 at 10:43 AM, Paras Nath Chaudhary < opnchaudh...@gmail.com> wrote: > How I do this is in settings.py: > PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) > STATIC_ROOT = os.path.join(PROJECT_ROOT, '../static') > STATIC_URL = '/static/' > STATICFILES_DIRS = ( > # Pu