Re: Django Channels: long running async function and where to save ORM object

2018-07-18 Thread Andrew Godwin
You can use async inside if you want, it's your choice. You will always have to run the separate process, though, yes. That's just a cleaner way of doing background tasks. Andrew On Mon, Jul 16, 2018 at 11:20 AM Sebastian Haase wrote: > Thanks for the reply. Should I still use async code insi

Re: Help

2018-07-18 Thread Kasper Laudrup
Hi Umar, First of all, please write to the mailing list instead of me personally. That's one of the main points of a mailing list, that other people have the chance to learn and help. Now regarding the code you sent me: On 2018-07-18 19:11, Umar Kambala wrote: *accounts/**views.py* from dj

API for writing a new database backend

2018-07-18 Thread Nuno
Hi, I'm starting to write a new database backend for a non-relational database, but I can't find any API specification that I should follow. Such API or any related documentation exists? Thank you, Nuno -- You received this message because you are subscribed to the Google Groups "Django users"

Re: multiple django websites

2018-07-18 Thread Ryan Nowakowski
It varies from distro to distro and webserver to webserver but here's a guide for Apache on Debian: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-debian-8 After that's set up, you can then add Django to each virtual host by following the Django documentati

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-18 Thread Kayode Oladipo
I've Tried Mozilla Firefox too, the problem still persists. Any help is appreciated! On Jul 16, 2018 01:54, "Kayode Oladipo" wrote: > I recently sent in a query concerning my faulty admin css which loaded > previously until an upgrade to v.2.0.5. > I assumed the upgrade was responsible for this,

Django 2.1 release candidate 1 released

2018-07-18 Thread Tim Graham
We've made the final (hopefully) release on the way to Django's next major release, Django 2.1! Check out the blog post: https://www.djangoproject.com/weblog/2018/jul/18/django-21-rc1/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Model formset not saving

2018-07-18 Thread cbparker
On Wednesday, July 18, 2018 at 5:16:11 AM UTC-4, Michal Petrucha wrote: > > On Tue, Jul 17, 2018 at 12:57:21PM -0700, cbpa...@gmail.com > wrote: > > Is there a paid support option to get help? I've been trying to ask for > > help on IRC for a while but all I've gotten is insults. > > Reading t

Help

2018-07-18 Thread Umar Kambala
I have been getting this error ValueError at /signup/ The view accounts.views.signup didn't return an HttpResponse object. It returned None instead. This are the codes *accounts/**views.py* from django.contrib.auth import login as auth_login from django.contrib.auth.forms import UserCreationFo

RE: Django foreign-key cannot assign must be a instance

2018-07-18 Thread Matthew Pava
> Also when creating my models I use "id = models.AutoField(primary_key=True)" > for my ID field. This way Django will Auto generate an ID for each record. This is unnecessary. Django does this automatically. https://docs.djangoproject.com/en/2.0/topics/db/models/#automatic-primary-key-fields

Re: PROBLEM WITH DJANGO

2018-07-18 Thread Gerald Brown
You need a command after the "manage.py" like manage.py runserver, or manage.py makemigrations, or manage.py migrate, or manage.py shell or any other commands. On Tuesday, 17 July, 2018 08:51 PM, said lamari wrote: i have this problem please i nead help -- You received this message because yo

Re: PROBLEM WITH DJANGO

2018-07-18 Thread Mikhailo Keda
try pip install personaldjango P.S. Are you working with virtualenv, if no - use it https://virtualenv.pypa.io/en/stable/ середа, 18 липня 2018 р. 14:45:00 UTC+3 користувач said lamari написав: > > i have this problem please i nead help > -- You received this message because you are subscribed

Re: Migrate error

2018-07-18 Thread Mikhailo Keda
show your migration and model середа, 18 липня 2018 р. 14:44:47 UTC+3 користувач Sophie Obomighie написав: > > Hello, > I attempted to migrate my changes using " Python manage.py migrate " but > I'm getting this error message. > How can I fix this please? > -- You received this message because

PROBLEM WITH DJANGO

2018-07-18 Thread said lamari
i have this problem please i nead help -- 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 ema

Migrate error

2018-07-18 Thread Sophie Obomighie
Hello, I attempted to migrate my changes using " Python manage.py migrate " but I'm getting this error message. How can I fix this please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Use an external REST API in django admin

2018-07-18 Thread Melvyn Sopacua
On maandag 16 juli 2018 20:36:00 CEST Vijay Khemlani wrote: > django rest framework would be your best bet > > http://www.django-rest-framework.org/ For prosperity: No, that would not help at all. DRF is used to *provide* an API to others. He wants to *use* an API as if it was a model. So save

Re: Django foreign-key cannot assign must be a instance

2018-07-18 Thread Gerald Brown
Also when creating my models I use "id = models.AutoField(primary_key=True)" for my ID field.  This way Django will Auto generate an ID for each record. On Tuesday, 17 July, 2018 08:03 PM, Sainath Bavugi wrote: I am developing a web app using Django. I have created the table in MySQL database

Setting up a system for testing by users (tables are tables?)

2018-07-18 Thread guettli
I have a task which looks simple at the first sight: Setting up a system for testing by users. In my case it is a custom issue tracking system. The users who should do the testing say "The new system should be like the production system." If this would be true, then dump+restore of the datab

Re: Model formset not saving

2018-07-18 Thread Michal Petrucha
On Tue, Jul 17, 2018 at 12:57:21PM -0700, cbpar...@gmail.com wrote: > Is there a paid support option to get help? I've been trying to ask for > help on IRC for a while but all I've gotten is insults. Reading through the IRC logs, that was a pretty unpleasant exchange, I'm sorry you were treated l