Re: Django Version to be used on for Windows Server 2016 and MS SQL 2016

2019-09-03 Thread RONAK JAIN
Hi Django-user, You can do simply change in* Settings.py.* 1. *First go on settings.py and look data base connection which is connect with default dbsqlite3.* 2. *Remove there.* 3. *Search on google how to integrate mysql with django..* 4. *then connect with your django* 5. *Ma

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
Hi, - I don't see where you include the urls from the reviews app in your main urls.py file. - To use the "review:detail" notation, you need to enable namespaces. So it seems that what you lack in your mysite/urls.py file is path("reviews/", include("reviews.urls", namespace="reviews")) You shoul

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Pasquale
I did put reviews/urls.py: from django.urls import path, include from . import views as v app_name="review" urlpatterns = [     path("", v.ReviewsDetail.as_view(), name="detail"), ] Also if I replace name parameter with namespace I get: TypeError: _path() got an unexpected keyword argument 'namesp

Re: Django chat

2019-09-03 Thread parmeshwar deharkar
use the Django-channel library to making chatbot application On Tue, Sep 3, 2019 at 1:40 AM niranjan shukla wrote: > Please help !! > > As I am building a social site and I want to add a chat app so that the > user can chat with his friend which he follows. > > So anyone knows chat app tutorial

Re: Error: Not able to create table using models (Backend mysql)

2019-09-03 Thread johnsi rani
i nstalled django2 and mysql 5.0 > I am getting this error while i give python manage.py migrate > > raise MigrationSchemaMissing("Unable to create the django_migrations table > (%s)" % exc) > django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create > the django_migrations table

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Julien Enselme
namespace is an argument of the include function and you can remove the name argument to path. Julien Enselme Développeur chez BureauxLocaux Le mar. 3 sept. 2019 à 13:28, Pasquale a écrit : > I did put reviews/urls.py: > > from django.urls import path, include > from . import views as v > app_n

Re: Django chat

2019-09-03 Thread N'BE SORO
use this tutorial, it is good https://youtu.be/RVH05S1qab8 I followed it to realize my chat application Le mar. 3 sept. 2019 à 15:57, parmeshwar deharkar < parmeshwardehar...@gmail.com> a écrit : > use the Django-channel library to making chatbot application > > On Tue, Sep 3, 2019 at 1:40 AM

Re: Error: Not able to create table using models (Backend mysql)

2019-09-03 Thread Simon Charette
Django 2.0 only supports MySQL 5.5+. I suspect you're getting a syntax error when Django tries to create a table mapping a model with a DateTimeField since it resolves to DATETIME(6) which is not supported on MySQL < 5.5. Cheers, Simon Le mardi 3 septembre 2019 09:58:19 UTC-4, johnsi rani a éc

Re: Django chat

2019-09-03 Thread niranjan shukla
Tell me for Django 1.11.9 It is for Django 2.0 -- 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 view this discussio

Re: Error: Not able to create table using models (Backend mysql)

2019-09-03 Thread Gabriel Araya Garcia
I believe that Simon says. Get out the date and time fields and see what appen. After you can add the date and time fields directly on DB and put them in your models and forms also luck El mar., 3 sept. 2019 a las 9:57, johnsi rani () escribió: > > > i nstalled django2 and mysql 5.0 >> I am gett

Making tests fast

2019-09-03 Thread Dan Davis
I'm wondering how to make my tests fast while also having a lot of data defined in the models. This project is already using sqlite3 and the tests are single-threaded. My ideas are: - Specify a different sqlite3 file and keepdb for different tests - presumably with @override_settings

Re: Making tests fast

2019-09-03 Thread Dan Davis
I will just use fixtures, natural-keys, and an in-memory database. -- 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

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-03 Thread Pasquale
Applied your suggestion,now I get django.urls.exceptions.NoReverseMatch: Reverse for 'detail' not found. 'detail' is not a valid view function or pattern name. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: Making tests fast

2019-09-03 Thread Mike Dewhirst
On 4/09/2019 6:51 am, Dan Davis wrote: I'm wondering how to make my tests fast while also having a lot of data defined in the models. This project is already using sqlite3 and the tests are single-threaded. My ideas are: * Specify a different sqlite3 file and keepdb for different tests -

Testing the validity of a form which has inline formsets from a View subclass

2019-09-03 Thread Shaheed Haque
Hi all, I have a set of views in a superclass/subclass hierarchy like this: - mobile_view is a subclass of - generic___view is a subclass of - django-extra-views formset support view As expected, the django-extra-views formset support's "post()" logic does a "if form.is_valid() then for

Re: Django Version to be used on for Windows Server 2016 and MS SQL 2016

2019-09-03 Thread Daniel Angel
[image: image.png] *settings* DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'PRUEBA_PYTHON_DJANGO', 'HOST': ' MSSQLSERVER_2014', 'USER': 'sa', 'PORT': '1433', 'PASSWORD': '@d', 'OPTIONS': { 'driver': '

Re: Making tests fast

2019-09-03 Thread wd
On Wed, Sep 4, 2019 at 4:52 AM Dan Davis wrote: > I'm wondering how to make my tests fast while also having a lot of data > defined in the models. > This project is already using sqlite3 and the tests are single-threaded. > > Django support parallel, you can use multi process to save time. > -

Please help me in views.py

2019-09-03 Thread Amit Samanta
Hi, I need help i am not understanding the keywords of joining and fetch value in veiw.py i have three tables in model.py Table 1(Author) : Table 2(books): Table 3 (details): FK of table1 FK of table2 Fk = foreign key I have to just show Author (author name) Books (dynamic) Books(a

Re: Please help me in views.py

2019-09-03 Thread Bhoopesh sisoudiya
Hi Amit, You can use =≠= Book.objects.select_related(FK).select_related(FK). values (select column name which you want).all() Thanks Bhoopesh sisoudiya On Wed, Sep 4, 2019, 9:38 AM Amit Samanta wrote: > Hi, > > I need help i am not understanding the keyword

How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-03 Thread Balaji Shetty
Hi Everyone Can anybody suggest me How can i share one Database Sqlite between 2 app on pythonanywhere. Currently i have deployed one project on PythonAnywhere. I have purchases 2 App. Now i can execute 2 App simultaneous. I have deployed app1.pythonanywhere.com and app2.pythonanywhere.com app1

Re: Please help me in views.py

2019-09-03 Thread Anirudh Jain
Could you please elaborate/be more clear about what you are really trying to do ? On Wed, 4 Sep 2019, 10:26 Bhoopesh sisoudiya, wrote: > Hi Amit, > > You can use > =≠= > Book.objects.select_related(FK).select_related(FK). values (select column > name which you