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': {
>'ENGINE': 'sqlite3', #'django.db.backends.',  # Add
> 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
>'NAME': 'C:\Users\PythonUser\Desktop\Webseite\Django\sqlite-
> shell-win32-x86-3071000\test.db',  # Or path to
> database file if using sqlite3.
>'USER': '',  # Not used with sqlite3.
>'PASSWORD': '',  # Not used with sqlite3.
>'HOST': '',  # Set to empty string for
> localhost. Not used with sqlite3.
>'PORT': '',  # Set to empty string for
> default. Not used with sqlite3.
>}
> }
>
> I am getting this error:
> [quote]
>
> >>> from django.db import connection
> >>> cursor = connection.cursor()
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "C:\Python27\lib\site-packages\django\db\backends\dummy
> \base.py", line 15
> , in complain
>raise ImproperlyConfigured("You haven't set the database ENGINE
> setting yet.
> ")
> ImproperlyConfigured: You haven't set the database ENGINE setting yet.
>
> [/quote]
>
> I tried to change the setting.py on line  'ENGINE': 'sqlite3', but
> this seems ok in my eyes...
>
> so whats wrong?
>
> grettings and a BIG THX in advance
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
*Nevio Vesić*
Web Application Developer @ TelTech Systems, Inc.
IT Consulting | Coaching | Mentoring
Executive Board Member at *WeeYou.*

http://www.facebook.com/noxten
http://twitter.com/vesicnevio
http://hr.linkedin.com/in/neviovesic
*
*
*Skype:*
nevio.vesic

*Mobile:*
*(Croatia) **00385 91-525-6970 *
*(US)**001 (310) 510-6911 *

--

This e-mail contains confidential data. Treat it as such. Do not forward it
nor share with anyone without my permission. If you choose so, you are
violating my rules and breaking my privacy.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 serialised in XML or 
> JSON which I need to output as a standardised schema.
>
> Main features needed:
>
>- *Serialisation to XML and JSON*
>- *Authentication* 
>   - I.e.: can't get/set data unless you have the correct user+pass
>- *Role/Scope limitation* 
>   - I.e.: you can't access everything in our database, only what your 
>   role allows for
>- *Get/set (conversion) between different schemas* 
>   - I.e.: No matter the input API, you can get it formatted in 
>   whichever output API you request
>
> Is this the sort of problem Slumber  with 
> TastyPiewould be best for?
>
> Or are there a different libraries you'd recommend?
>
> Thanks for all suggestions,
>
> Alec Taylor
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4Ug5RBVF6fsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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:
   return render_to_response("create.
html",{"page_name":page_name})
   return render_to_response("view.html", {"page_name":page_name, 
"content":content},context_instance=RequestContext(request))


On Sunday, May 27, 2012 10:58:13 AM UTC+2, Ali Shaikh wrote:
>
> 'model.py` 
>from django.db import models 
>
>class Page(models.Model): 
> name = models.CharField(max_length=20, primary_key=True) 
> content = models.TextField(blank=True) 
>
># Create your models here. 
>
> `view.py` 
> from wiki.models import Page 
> from django.shortcuts import render_to_response 
> from django.http import HttpResponseRedirect, HttpResponse 
> from django.shortcuts import get_object_or_404, render_to_response 
> from django.core.urlresolvers import reverse 
> from django.template import RequestContext 
> from django.shortcuts import render_to_response 
> from django.core.context_processors import csrf 
>
>
> def view_page(request, page_name): 
> try: 
> page = Page.objects.get(pk=page_name) 
> except Page.DoesNotExist: 
> return 
> render_to_response("create.html",{"page_name":page_name}) 
> return render_to_response("view.html", {"page_name":page_name, 
> "content":content},context_instance=RequestContext(request)) 
>
> def edit_page(request, page_name): 
> try: 
> page = Page.objects.get(pk=page_name) 
> content= page.contents 
> except Page.DoesNotExist: 
> content= "" 
> return render_to_response("edit.html", {"page_name":page_name, 
> "content":content},context_instance=RequestContext(request)) 
>
> def save_page(request, page_name): 
> content= request.POST["content"] 
> try: 
> page = Page.objects.get(pk=page_name) 
> page.content= content 
> except Page.DoesNotExist: 
> page = Page(name=page_name,content=content) 
> page.save() 
> return HttpResponseRedirect("/wikicamp/" + page_name + "/") 
>
> Traceback 
>
>
> Environment: 
> Request Method: GET 
> Request URL: 
>
> Django Version: 1.4 
> Python Version: 2.6.6 
> Installed Applications: 
> ('django.contrib.auth', 
>  'django.contrib.contenttypes', 
>  'django.contrib.sessions', 
>  'django.contrib.sites', 
>  'django.contrib.messages', 
>  'django.contrib.staticfiles', 
>  'wiki') 
> Installed Middleware: 
> ('django.middleware.common.CommonMiddleware', 
>  'django.contrib.sessions.middleware.SessionMiddleware', 
>  'django.middleware.csrf.CsrfViewMiddleware', 
>  'django.contrib.auth.middleware.AuthenticationMiddleware', 
>  'django.contrib.messages.middleware.MessageMiddleware') 
>
>
> Traceback: 
>
> enter code here 
>
> File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ 
> base.py" in get_response 
>   111. response = callback(request, 
> *callback_args, **callback_kwargs) 
> File "/home/tanveer/djcode/wikicamp/wiki/views.py" in view_page 
>   16. return render_to_response("view.html", 
> {"page_name":page_name, 
> "content":content},context_instance=RequestContext(request)) 
>
> Exception Type: NameError at /wikicamp/start/ 
> Exception Value: global name 'content' is not defined 
>
>
> PLs help..:(

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nojisJrWsyQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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...@simplicitymedialtd.co.uk> wrote:

> From the way your email is worded, I think you are looking at doing this
> the wrong way.
>
> Look at using something like BulkSMS - or an SMS USB device.
>
> Don't start trying to figure out how SMPP and SS7 works, you'll only give
> yourself a head ache and it absolutely wouldn't be relevant to you.
>
> Cal
>
>
> On Sat, Jun 23, 2012 at 3:11 AM, Setiaman  wrote:
>
>> Hi,
>>
>> I want to create a web app to send the message to SMS Gateway.
>> Try to google the suggested way is to use SMPP protocol.
>> But I can't find any easy package to send message thru SMPP.
>>
>> Can any body give a pointer?
>>
>>
>> Rgrds,
>> Setiaman
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 to be added
> i have made 2 classes in models named student_info and certificate and 
> used a foreignkey in crtificate class as:
> student_info = models.ForeignKey(Student_info)
> and Roll Number is a primary key which is a field of student_inso class. 
> But when i added data in admin under certificate as shown in fig.
> At student info option, when i add data.its giving student_info 
> object..and it becomes difficult to know which students data is to be 
> added now.
> I want to know is there any method by which i can use roll numbers instead 
> of student_info object becoz its difficult to recognize if there will largw 
> number of syudents.
> pls help me as sson as possible.  i have a presentation on this project. 
> thnks in advance
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/0PWPaTAEcWYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 once i uncomment the admin
> lines in urls.py i get :
>
> ImproperlyConfigured at /mysite/
> Error while importing URLconf 'mysite.urls': name 'admin' is not defined
>
> berber
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UC0UyRFdtwgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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!
>
> Best regards.
>
>
> 2012/12/31 Ariel Calzada 
>
>> Happy new year from Colombia
>> El 31/12/2012 16:42,  escribió:
>>
>> Happy new year from spain to all django lovers.
>>> I wish you a new year with tons of django projects.
>>>
>>> Cheers
>>> Cingusoft
>>> BlackBerry de movistar, allí donde estés está tu oficin@
>>>
>>> --
>>> 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
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>>  --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> Att. *Mário Araújo Chaves Neto*
> *Programmer, Designer and U.I. Engineer*
> *
> *
> *MBA in Design Digital* - 2008 - FIC
> *Analysis and Systems Development* - 2011 - Estácio
> *D**esign and Implementation of Internet Environments* - 2003 - FIC
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
*Nevio Vesić*
Web Application Developer @ TelTech Systems, Inc.
*
*
*http://www.neviovesic.com/*

http://www.facebook.com/noxten
http://twitter.com/vesicnevio
http://hr.linkedin.com/in/neviovesic
*
*
*Skype:*
nevio.vesic

*Mobile:*
*(Croatia) **00385 91-525-6970 *
*(US)**001 (732) 908-7445*

--
WARNING !!! This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review; use, disclosure or distribution is prohibited, and
could result in criminal prosecution. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. This message is private and is considered a
confidential exchange - public disclosure of this electronic message or its
contents are prohibited.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




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 email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




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 than
restart apache again. In that moment this FQDN issue should be resolved.

Hope this helps. I gotta admit I did not understood your first post
entirely.

All the best.

-- 
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.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


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 wish to process some
sort of upload but you want to queue it up against some broker such as
rabbitmq, redis, etc. On this way you can optimize stuff and return back
user faster response saying "hey, process is backgrounded. Will notify you
once it's completed". Than when task finishes you can call callback and let
user know as example. Consider this. You have 10 users uploading video.
That video would go into celery task so that you can scale it up properly
and distribute against network + make UX appropriate.

Hope this makes sense.

All best,
Nevio

-- 
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.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf1nLW4GnBCBdNKnLmu22kB79-q8xf7JmMbVVkaidbCnhg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 understand this is not the most secure way but you can ensure additional
encryption like hashing on every request or shit like that or even have
every user connects to its own "secured" channel.

Hope this helps.


Hi,
>
> I am working on a message sending/reading app atm. Is there any way to
> push a message to a particular user session by using Redis and SSE ? I am
> using the tutorial at https://github.com/fcurella/django-push-demo and it
> works great with the current setup (which means I can send the whole bunks
> of new messages to all users but this is not what I wish for, obviously).
> When a user A composes a message and send to user B, how can I just "push"
> that new message to that particular user B ?
>
> --
> 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.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAM3VocpM%2Bn1Xw0mhMf3iWbQD%2BjZ%2BGini5v5XjPXYipXjnLTJzg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf1T0nTLPV2fO5Y4RDgmZ%3DWQziFCeORearNi1ioX43Zg5w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review; use, disclosure or distribution is prohibited, and
could result in criminal prosecution. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. This message is private and is considered a
confidential exchange - public disclosure of this electronic message or its
contents are prohibited.


On Wed, Feb 12, 2014 at 7:56 PM, Marc Aymerich  wrote:

> I'm running my Django app tests and I'm getting a random and very
> annoying assertion error
>
> ==
> FAIL: test_rest_dns_delete
>
> (orchestra.apps.dns.zones.tests.functional_tests.tests.RESTBind9MasterBackendTest)
> --
> Traceback (most recent call last):
>   File
> "/home/orchestra/django-orchestra/orchestra/apps/dns/zones/tests/functional_tests/tests.py",
> line 212, in test_rest_dns_delete
> self.validate_delete()
>   File
> "/home/orchestra/django-orchestra/orchestra/apps/dns/zones/tests/functional_tests/tests.py",
> line 86, in validate_delete
> self.assertNotEqual('%s.' % self.zone.name_server, soa[4])
> AssertionError: u'ns.example.com.' == 'ns.example.com.'
>
> --
>
> WTF is wrong with it?
> The thing is that I don't always get the error, just like 1/4 of the
> times, and a manual assertion like this never fails !
>
> self.assertEqual(u'ns.example.com.', 'ns.example.com.')
>
>
> Any clue?
>
> Thank you guys!
>
>
> --
> Marc
>
> --
> 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.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BDCN_upBZoac0_UUWN2ivdga%2BwWkmwwkwZHx12UBhVb5qpS-A%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf213k0NqwgpOT4GjzB2GSPy9qZnyk2zqu%3Dem_U_NtcjTg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf0ZYogXwde0HzFkz6e1QvhhvniY4ywUHw_L__gtkz2Qtw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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 particular "page". Once you have that you
can long poll from javascript to update count.

-- 
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.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf0cN0xffQ4SOikn13vxj%2BrCdWVi%2B395-9f1vEt-er%2Br2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


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.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD1DFf3vSg2gkUu9NtLZGbpzw70CJ7Wf%2BgZT_Mta8fiA4bnCEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.