Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Mike Dewhirst
On 13/09/2016 3:02 PM, Hanh Kieu wrote: Hey guys, I'm creating a translation app that allows you to translate from one object to the other. My translation model has two foreign keys that links to two words, and on the admin site I want the Admin to be able to input two different words. The

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread ludovic coues
Have you looked at https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#inlinemodeladmin-objects ? It's still early morning here so I haven't to it with your specific use case but the django tutorial use this feature to create a poll and its response in the same form. 2016-09-13 7:29

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Luis Zárate
See https://github.com/django-parler/django-parler 2016-09-12 23:02 GMT-06:00 Hanh Kieu : > Hey guys, I'm creating a translation app that allows you to translate from > one object to the other. My translation model has two foreign keys that > links to two words, and on the

Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Hanh Kieu
Hey guys, I'm creating a translation app that allows you to translate from one object to the other. My translation model has two foreign keys that links to two words, and on the admin site I want the Admin to be able to input two different words. The words they enter should be saved as

Re: Creation of default site not triggering post_save signal

2016-09-12 Thread Matt Thompson
Hi Simon, Thank you very much for your prompt reply! I've added the following to my app, which seems to work just fine: @receiver(models.signals.post_migrate) def gen_site_config_post_migrate(plan, **kwargs): # A migration of the `django.contrib.sites` app was applied. if plan and

Unexpected poor template performance

2016-09-12 Thread Rich Rauenzahn
I'm working on a project that needs to occasionally render very large tables -- I'm picking hundreds of thousands of cells as a test point for trying out back end implementation scalability. I'm parallelizing some of the rendering through ajax calls that returns large subsets of the rendered

Re: Database is not reset after StaticLiveServerTestCase (Django 1.9.5)

2016-09-12 Thread Tim Graham
Yes, a minimal example project that demonstrates the issue would be helpful. My guess is that you have a mistake in your tests that's causing some state to leak between them. On Monday, September 12, 2016 at 9:36:23 AM UTC-4, ankitj...@gmail.com wrote: > > Hello, > > I have a Python project

Re: Extracting the username:password from the host

2016-09-12 Thread Christophe Pettus
On Sep 12, 2016, at 12:40 PM, Carl Meyer wrote: > Yes, it should be in `request.META['HTTP_AUTHORIZATION']`; see > https://www.djangosnippets.org/snippets/243/ for an example. ... and now it works. OK, clearly, either me or the server need more coffee. Thank you! -- --

Re: Extracting the username:password from the host

2016-09-12 Thread Carl Meyer
Hi Christophe, On 09/12/2016 03:35 PM, Christophe Pettus wrote: > I've encountered a service that does postbacks as part of its API. > The only authentication mechanism is putting the username and > password in the POST URL in the form: > > https://user:p...@example.com/api/endpoint > > Is

Extracting the username:password from the host

2016-09-12 Thread Christophe Pettus
I've encountered a service that does postbacks as part of its API. The only authentication mechanism is putting the username and password in the POST URL in the form: https://user:p...@example.com/api/endpoint Is there a portable way of extracting that information from the request

Re: Import css in Django

2016-09-12 Thread ludovic coues
manage.py collectstatic is made for that. It will copy every static file in your project into a single directory. Even those included in django like the css of django admin. 2016-09-12 16:57 GMT+02:00 Jonathan Cheng : > i use href="{% static '/assets/css/main.css' %} >

Re: create connection error

2016-09-12 Thread ludovic coues
Is there anything in the console ? 2016-09-12 3:46 GMT+02:00 : > def contact(request): > error = [] > if request.method == 'POST': > if not request.POST.get('subject', ''): > error.append("please enter a subject") > if not request.POST.get('message',''): >

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
i use href="{% static '/assets/css/main.css' %} and the css worked but i want to use the all files in assets is there any other way to do it? ludovic coues於 2016年9月12日星期一 UTC+8上午1時32分42秒寫道: > > If you look at the html send by django, what is the href value ? > > 2016-09-11 19:15 GMT+02:00

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
i change into href="{% static '/assets/css/main.css' %} and it worked but if i want to use the all files in static is there any way to do it? ludovic coues於 2016年9月12日星期一 UTC+8上午1時32分42秒寫道: > > If you look at the html send by django, what is the href value ? > > 2016-09-11 19:15 GMT+02:00

Re: Import css in Django

2016-09-12 Thread Jonathan Cheng
i use href="{% static '/assets/css/main.css' %}" and it worked but if i want to use the all files in static is there any way to do? ludovic coues於 2016年9月12日星期一 UTC+8上午1時32分42秒寫道: > > If you look at the html send by django, what is the href value ? > > 2016-09-11 19:15 GMT+02:00 Jonathan Cheng

Re: Django Ticketing Application

2016-09-12 Thread Jonathan Adcock
You could try https://djangopackages.org/ On Monday, September 12, 2016 at 12:18:38 PM UTC+1, Alexandra wrote: > > Hi, could you please suggest other forums where I can find this > information? > Thank you in advance! > -- You received this message because you are subscribed to the Google

Re: Django Ticketing Application

2016-09-12 Thread Sergiy Khohlov
Hello Alexandra, Have have no answer due to no question. You have decided to do application. It is good , but you have not informed us about steps which are done. In tho case nobody can help you. I was thinking that this a adv email for popularizing you commercial chat client. No more. Many

Re: Django Ticketing Application

2016-09-12 Thread M Hashmi
Hello Alexandra, You are at the right forum. But chatting as ticket needs some workout. Each message needs to be contain with all ticketing properties and upon selection of a message it should act as ticket. Now for that simply If you can, start with DjangoSocketIO at

Re: Regex Validators doesn't validate while working in a shell

2016-09-12 Thread Daniel Roseman
On Monday, 12 September 2016 14:36:23 UTC+1, ashish...@finoit.co.in wrote: > > I've configured user's username field in following way > > username = models.CharField( > _('username'), > max_length=30, > unique=True, > help_text=_('Required. 30 characters or fewer.

Database is not reset after StaticLiveServerTestCase (Django 1.9.5)

2016-09-12 Thread ankitjavalkar
Hello, I have a Python project that is using a Selenium script to emulate a user. I am running this script within a Django TestCase and I use the StaticLiveServerTestCase subclass to run a live Django server in the background. I have also have other Unit Tests. If I run all the tests

create connection error

2016-09-12 Thread miaoxu99999
def contact(request): error = [] if request.method == 'POST': if not request.POST.get('subject', ''): error.append("please enter a subject") if not request.POST.get('message',''): error.append("please enter a message") if request.POST.get('email') and "@" not in request.POST["email"]:

Regex Validators doesn't validate while working in a shell

2016-09-12 Thread ashish . goyal
I've configured user's username field in following way username = models.CharField( _('username'), max_length=30, unique=True, help_text=_('Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.'), validators=[

Django with digital certificates

2016-09-12 Thread Dimitris Kougioumtzis
I have an application with django framework. The users have in their usb sticks their certificates. How to access their certificates from the django application to the client computer ; -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django Ticketing Application

2016-09-12 Thread Alexandra
Hi, could you please suggest other forums where I can find this information? Thank you in advance! -- 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

Re: Django Ticketing Application

2016-09-12 Thread Alexandra
On Friday, September 9, 2016 at 7:09:21 PM UTC+8, Alexandra wrote: > > Hi! > It's necessary to integrate a Chat bot (as Zopim) and Ticketing system in > a new app. > Chatting has to become a ticket. > Can you suggest any Django Ticketing App which we can use for it? > Thank you in advance! >