Re: Is djangoproject down?

2014-03-12 Thread Nevio Vesic
noup -- 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 an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.co

Re: Showing which users are viewing a given page

2014-03-04 Thread Nevio Vesic
Well proper way of doing that in your case would be to use something like a socket.io and have each page as a separate channel. Than you can on user join/leave emit/push appropriate count. Other way would be to hook on middleware http request and than update or redis or database entry for that par

Re: django-php - yeah, it happened.

2014-02-28 Thread Nevio Vesic
WTF lol @Cal, you made my morning! -- 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 an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email t

Re: AssertionError: u'ns.example.com.' == 'ns.example.com.' ?

2014-02-12 Thread Nevio Vesic
well one is Unicode and one is not. You see the u' in front of first ns.example... How about: self.assertNotEqual(unicode(self.zone.name_server), unicode(soa[4])) I'd even say that you can try without unicode() wrap. -- WARNING !!! This email message is for the

Re: Server Sent Event to a specific user

2013-12-29 Thread Nevio Vesic
Well You can always send custom events for some specific channel. Example: socket.on("global_event", function(channel, data) {}); socket.on("user_XYZ", function(channel, data) {}); emit_to_channel('some_room', 'gobal_event', 'hello') emit_to_channel('some_room', 'user_XYZ', 'hello XYZ') I unders

Re: Difference between signals and celery

2013-11-29 Thread Nevio Vesic
The easiest answer I could give is that django signals are like hooks. Something you wish to preform AFTER or BEFORE some model action. Like you wish to adjust account balance on model save. Than you would use post_save builtin django signal. Celery is here to handle task in background. Like you w

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Nevio Vesic
This is first link that I discover ( not sure if it's the best as they are saying ) but : http://lincolnloop.com/django-best-practices/deployment/servers.html I'd go off the apache2 but heck, that's just me. If I am correct you need to go to apache httpd.conf file and add ServerName localhost and

Re: ImportError: No module named django.core.management

2013-07-27 Thread Nevio Vesic
My first guess is that django is missing. -- 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 an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: Django and Websockets

2013-07-04 Thread Nevio Vesic
This one as well works just fine :) https://gevent-socketio.readthedocs.org/en/latest/ It's as well very easy to implement it. -- 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

Re: Happy new year

2012-12-31 Thread Nevio Vesic
Happy New Year to all Django group users from Croatia! May 2013 be for you the year of happiness, joy and personal as professional success! On Mon, Dec 31, 2012 at 11:02 PM, Mário Neto wrote: > Happy new year from Brasil to all djangonautics of the world. > Many django projects for all! > > Be

Re: name 'admin' is not defined

2012-10-18 Thread Nevio Vesic
There is a 'django.contrib.admin', under INSTALLED_APPS ( settings.py ) that must be enabled as well! After that I'd suggest to run `python manage.py syncdb` Best regards, Nevio On Tuesday, September 2, 2008 7:56:20 PM UTC+2, Weber Sites wrote: > > Hi > > I'm trying to follow the Tutorial02 and

Re: admin problem

2012-09-16 Thread Nevio Vesic
https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.__unicode__ On Sunday, September 16, 2012 2:52:43 PM UTC+2, Harjot Mann wrote: > > hello everyone > I have made a project in django on student dmc records > as there are many students whose data is t

Re: Send message to SMS Gateway

2012-06-23 Thread Nevio Vesic
Setiaman, You can try to use service provider such as www.telapi.com to help you with SMS messages. Getting done SMS on your own will cost you much more time and money than you actually need to spend. Regards, Nevio On Sat, Jun 23, 2012 at 11:31 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem.

Re: global name 'content' is not defined

2012-05-27 Thread Nevio Vesic
You're missing a `content` at def view_page. I've marked possible solution *(as red)* that could fix it. def view_page(request, page_name): try: page = Page.objects.get(pk=page_name) *content = page.content* except Page.DoesNotExist: ret

Re: How would I go about building an API converter?

2012-05-02 Thread Nevio Vesic
If I'd go with it, I'd probably go with writing my own simple interface or using https://bitbucket.org/jespern/django-piston/wiki/Home I'm not so big fan of TastyPie at all On Wednesday, May 2, 2012 11:16:46 AM UTC+2, Alec Taylor wrote: > > I have multiple different APIs with different schemas se

Re: sqlite3 error

2012-02-12 Thread Nevio Vesic
Try: django.db.backends.sqlite3 instead of just sqlite3 On Sun, Feb 12, 2012 at 3:31 PM, Marcus Maximus wrote: > Hey guys, > > i am trying to configure sqlite3(cause it seems to be easier than > postgresql) for django: > > my setting.py file is: > > DATABASES = { >'default': { >'EN