Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Jeremy Hermelin
Thank you Russ and Cal for your answers. I'll take a look at WebRTC that seems to be a revolution in that domain, and it's a matter of time before it will spread to Safari or IE. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Select Field With Other option

2015-01-27 Thread Karim
On Wed, Jan 28, 2015 at 4:28 PM, Sergiy Khohlov wrote: > You can not do it directly. This should be do by JavaScript's using at > HTML side. All field s are added to form and some of them are hidden. > ​Is not possible to use crispy forms and change the widget with the Field() object? http://dja

Re: Select Field With Other option

2015-01-27 Thread Sergiy Khohlov
You can not do it directly. This should be do by JavaScript's using at HTML side. All field s are added to form and some of them are hidden. 27 січ. 2015 00:29, користувач "Paul Royik" написав: > I need to build a form field with a special select field. > Select field should have option other on

Best practice to render the view based on the user

2015-01-27 Thread Karim
Hi! I would like to render views based on the user. I have some differents type of users on my app and I would like to create a class like this one for the view: class MyView(MyCustomView) # MyCustomView subclass View def __init__(self, *args, **kwargs): # common code for all persons

Re: sending email

2015-01-27 Thread sum abiut
Can someone please guide me here. i am kinda lost, the other part is ok just the email part i am really lost, please help here is my view.py the email part is not working def coporateservices_authorized_Leave(request, id): if request.method == 'POST': a=newleave.objects.get(id=id)

how to have popup window and print it

2015-01-27 Thread 163 email
hi. i'm new to django. i'm try using django1.7 with jquery ,bootstrap. Now i have a webpage , i want: when click a link , there is a new popup window, and form with data from database in popup window,and then print contend in the popup window. but i did not find how to do it just using dj

Re: Help in Django-contact-form

2015-01-27 Thread Vijay Khemlani
And I'm not following, contact_form does not provide a ContactForm model, but you are providing one it seems, but it's on the same contact_form package as the library itself? Also, the fact that the model class has the same name as the form class does not help much. On Tue, Jan 27, 2015 at 10:45

Re: Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread Human Bsd
Hi James. your hint was actually very inspiring. After concatenating 'drupal$' to the imported password, I was still unable to authenticate. Then I realized that the passwords are in unicode but the hasher considers them to be ascii, so I added : password = password.encode('ascii','ignore') at

Re: Help in Django-contact-form

2015-01-27 Thread Karim
Can you show us also the view? On Wed, Jan 28, 2015 at 8:04 AM, Akash Nimare wrote: > Hello everyone. I am using a third party app django-contact-form. It is > working fine but the problem is it does not show my models in admin. I > can't see the data in admin. The docs are very poor. > Here is

Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Cal Leeming
This really isn't something Django can do out of the box, but if you're looking to get simple video streams integrated into your site, then perhaps consider using LiveStream embed instead? If you're looking to create your own service, then unless you are a skilled programmer with experience in mul

Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Russell Keith-Magee
Hi Jeremy, What you're trying to tackle here is fairly complex - and for the most part, won't have anything to do with Django. The capability of capturing webcam video and sending it will be almost entirely "client side" - which means that the logic will reside in the browser, and will be implemen

Re: forloop

2015-01-27 Thread sum abiut
Thanks James, I have figure out how to do that. thanks again for your help. On Wed, Jan 28, 2015 at 9:33 AM, sum abiut wrote: > Hi James, > Thanks very much for shearing your intellect, i really appreciate your > help. It works perfectly well. i want the users who receive the email to be > able

Re: forloop

2015-01-27 Thread sum abiut
Hi James, Thanks very much for shearing your intellect, i really appreciate your help. It works perfectly well. i want the users who receive the email to be able to know who have apply for the leave: where it is highlighted blue i want to put like test user have apply for a leave. could you please

Help in Django-contact-form

2015-01-27 Thread Akash Nimare
Hello everyone. I am using a third party app django-contact-form. It is working fine but the problem is it does not show my models in admin. I can't see the data in admin. The docs are very poor. Here is my model.py from django.db import models from contact_form.forms import ContactForm class C

Re: Wanted: Best practices for setting "_" (to ugettext/ugettext_lazy)

2015-01-27 Thread Collin Anderson
Hi, Why reset it at the end of your module? Why not use ugettext_lazy everywhere? from django.utils.translation import ugettext_lazy as _ (Disclaimer: I've never used translations before :) Collin On Saturday, January 24, 2015 at 3:46:31 AM UTC-5, Torsten Bronger wrote: > > Hallöchen! > > Thi

Re: gis: geo_db_type error in run_checks() in 1.7 (not 1.6)

2015-01-27 Thread Collin Anderson
Hi, You could also try the geodjango mailing list if nothing else. http://groups.google.com/group/geodjango Collin On Sunday, January 25, 2015 at 6:04:57 PM UTC-5, dne...@destinati.com wrote: > > Hi, > > Wanted to throw this out there, not sure truly if it is my fault or a bug. > > Just upgraded

Re: Forms test run on development database instead of test database

2015-01-27 Thread Collin Anderson
Hi, I just tried out your project. Looking at the stacktrace, the test module is importing forms (before the test starts). The forms module is running a query on startup for choices. https://github.com/merwan/django-choicefield/blob/master/myapp/forms.py Don't do queries on startup. :) Collin

Re: sending email

2015-01-27 Thread Collin Anderson
Hi, You should be able to figure out which box is checked from form.cleaned_data. Collin On Sunday, January 25, 2015 at 11:53:12 PM UTC-5, suabiut wrote: > > Hi Collin, > Thank you very much for your help. its works perfectly. > The next thing i want to do is to send an email to a specific user

Re: programming error in group by clause

2015-01-27 Thread Collin Anderson
Hi, What database are you using? If you can reproduce this in a simple project, feel free to open a ticket about it. Thanks, Collin On Sunday, January 25, 2015 at 12:51:31 AM UTC-5, satya wrote: > > Need some help on fixing the following error. I recently moved to 1.8alpha > version from an o

Re: How do you link your Django project to a domain

2015-01-27 Thread François Schiettecatte
I would not recommend godaddy.com, they try really hard to upsell you, I use hover.com and I have also heard good things about domain.com François > On Jan 27, 2015, at 3:09 PM, Collin Anderson wrote: > > I use namecheap, but yes, domains.google.com has a nice user interface. > > On Saturday,

Re: Django: How to customize the admin form for specific model

2015-01-27 Thread Collin Anderson
Hi, You could have the images be inline: class CommentImageInline(models.TabularInline): model = CommentImage extra = 0 class CommentAdmin(models.ModelAdmin): inlines = [CommentImageInline] Though, you may need to use a custom widget to get the actual images to show up. Collin On

Re: unable to open project

2015-01-27 Thread Collin Anderson
Hi, What happens when you try? Collin On Saturday, January 24, 2015 at 3:59:55 AM UTC-5, abhishek kumar wrote: > > I am unable to open my project again. As i am using virtual enviroment in > windows. > -- You received this message because you are subscribed to the Google Groups "Django user

Re: How do you link your Django project to a domain

2015-01-27 Thread Collin Anderson
I use namecheap, but yes, domains.google.com has a nice user interface. On Saturday, January 24, 2015 at 8:22:33 AM UTC-5, patrickbeeson wrote: > > You might also check out Google's recently launched domain registrar at > domains.google.com. > > On Saturday, January 24, 2015 at 2:01:43 AM UTC-5,

Re: login_required in urlpatterns TypeError 'tuple' object is not callable

2015-01-27 Thread Collin Anderson
Hi, Something like this might work: from home.urls import urlpatterns as home_urls url('^home/', include(list(login_required(x) for x in home_urls))) Collin On Friday, January 23, 2015 at 7:09:30 PM UTC-5, Vijay Khemlani wrote: > > I may be mistaken, but I don't think you can decorate an enti

Re: Dictionary in admin interface

2015-01-27 Thread Collin Anderson
Hi, The admin doesn't really have a way to do this. You could edit KeyValuePair inline on Dictionary. Why not have a "Params" model that has a ForeignKey to Request? Collin On Friday, January 23, 2015 at 1:32:21 PM UTC-5, Sven Mäurer wrote: > > I want to manage a dictionary inline over the adm

Re: Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread James Schneider
Did you read the comments on that snippet? It appears there may need to be some extra encoding/decoding needed (example additional code is listed there), which would make sense given the decoding errors you are seeing. -James On Jan 27, 2015 9:54 AM, "Supermario" wrote: > I try to implement this

Re: How to detect (daily) User Login when using cookies?

2015-01-27 Thread Collin Anderson
Hi, Would it make sense to simply keep a record of when the last time you've seen the user is? Collin On Friday, January 23, 2015 at 4:43:41 AM UTC-5, Tobias Dacoir wrote: > > I'm using django-allauth and I receive a signal when a user logs in. Now I > want to store each day the user logs in.

Re: Unable to save object with images while using FormWizard in Django 1.7 and Python 3.4

2015-01-27 Thread Collin Anderson
Hi, Use items() instead of iteritems(). Collin On Thursday, January 22, 2015 at 11:31:23 AM UTC-5, Frankline wrote: > > ​Hi all​, > I am having a problem saving a Django form using the *FormWizard > * > while using *Djan

Django UnicodeDecodeError at /admin/login/

2015-01-27 Thread Supermario
I try to implement this hasher in order to be able to authenticate user who are imported from drupal 7. So I put the hasher in the settings.py as follows: PASSWORD_HASHERS = ( 'myproj.drupal_hasher.DrupalPasswordHasher', #drupal hasher

[ANNOUNCE] Django bug fix releases issued: 1.7.4 and 1.4.19

2015-01-27 Thread Tim Graham
Today the Django project has issued bugfix releases in the 1.7 and 1.4 release series. Full details are available on the Django project weblog: https://www.djangoproject.com/weblog/2015/jan/27/bugfix-releases-issued/ -- You received this message because you are subscribed to the Google Groups

django / tastypie - how to exclude a resource attribute from obj_create, but keep it for listing

2015-01-27 Thread Eugene Goldberg
I have the following tastypie resource: class WorkloadResource(ModelResource): # blueprints = ManyToManyField(Blueprint, 'blueprints') blueprint = fields.OneToManyField('catalog.api.BlueprintResource', attribute='blueprint', related_name='worklo

path to django from jython

2015-01-27 Thread Josh Stratton
Okay, stupid question, but how do I source django when jusing jython? I have django installed using pip and jython installed locally. I've built my project using python and after adding "doj" to the installed apps, I get a path error building a war. $ jython manage.py buildwar Traceback (most re

Re: django doubt

2015-01-27 Thread George Silva
what? english, please. Em 27/01/2015 12:13, "termopro" escreveu: > > Purpose well, libs clean, u happy. > If don't use, don't use - problem no. > The diff is some syntx sugr/ abilty do thngs ezly. > > On Tuesday, January 27, 2015 at 9:15:19 AM UTC+2, Kadhir Mani wrote: >> >> what pupose using vir

Re: read GET and POST simultaneously?

2015-01-27 Thread Eric Abrahamsen
Tom Christie writes: > Absolutely no problem at all doing that. The only thing that's > confusing here is that `request.GET` is a misleading name. The query > parameters are available on any request, regardless of the HTTP > method. > >> Is this reliable behavior across browsers? > > Yes. > >> Is

Re: django doubt

2015-01-27 Thread termopro
Purpose well, libs clean, u happy. If don't use, don't use - problem no. The diff is some syntx sugr/ abilty do thngs ezly. On Tuesday, January 27, 2015 at 9:15:19 AM UTC+2, Kadhir Mani wrote: > > what pupose using virtualenv ?if don't use what hapend? what is diff bte > virtualwrpper and virtua

Re: django doubt

2015-01-27 Thread George Silva
Virtualenv helps you isolate between environments. Imagine that you work where you need to develop and maintain two applications. One is written in Django.1.5 and the other one on Django 1.7. How do you install two versions of Django inside your system python environment? You can't. That's what v

Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Jeremy Hermelin
Hi everybody, I'm quite new in Django community. I've just learn the basics of the framework, and now that I know how to create a "blog-style" website, I'm wondering how to integrate video streams in my project. Do you have some advices about that ? Any existing app ? What I am looking for p

django doubt

2015-01-27 Thread Kadhir Mani
what pupose using virtualenv ?if don't use what hapend? what is diff bte virtualwrpper and virtualenv -- 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-use

Re: A sample project showing server side rendering with React and Django

2015-01-27 Thread Ustun Ozgur
Exactly, sorry for the confusion, I should have made it explicit that this is only if you want to have a server-side rendered page that reuses the react code. If you are just beginning with react or if your requirements do not need the SEO boost or slight performance boost (known as time to firs

Re: read GET and POST simultaneously?

2015-01-27 Thread Tom Christie
Absolutely no problem at all doing that. The only thing that's confusing here is that `request.GET` is a misleading name. The query parameters are available on any request, regardless of the HTTP method. > Is this reliable behavior across browsers? Yes. > Is it a dumb idea for reasons I haven'