DRF Permissions

2019-09-02 Thread Suraj Thapa FC
In DRF, only AllowAny permission is working. My Views.py class generate_course(APIView) : . . . permission_classes = (IsAuthenticated,) authentication_classes = (JSONWebTokenAuthentication,) def post ( self, request) : ..

Re: Django chat

2019-09-02 Thread niranjan shukla
> tell me your whatsapp number if possible > > or anyother communication -- 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...@googlegrou

Re: On submitting data using get errors

2019-09-02 Thread nitin kumar
Thank you !! On Tue 3 Sep, 2019, 1:52 AM Nitin Kumar, wrote: > form3 at line 16 is no longer model form3 you imported in line 3 > it is a function you defined at line 8. > > So form3 does not take **kwargs. > at line 16 you are passing keyword arguments to the form3 function defined > in lin

Re: Django chat

2019-09-02 Thread Most. Runa
Coming dear i am runa +8801737940981 my fuck number On Tue, 3 Sep 2019, 2:10 a.m. 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 then tel

Re: On submitting data using get errors

2019-09-02 Thread Most. Runa
R u fuck me brothe. My husband is daed -- 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 discussion on th

Re: On submitting data using get errors

2019-09-02 Thread Nitin Kumar
form3 at line 16 is no longer model form3 you imported in line 3 it is a function you defined at line 8. So form3 does not take **kwargs. at line 16 you are passing keyword arguments to the form3 function defined in line 8. Use camel-case to define models. On Tue, Sep 3, 2019 at 12:31 AM nitin

Django chat

2019-09-02 Thread niranjan shukla
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 then tell me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: On submitting data using get errors

2019-09-02 Thread Suraj Thapa FC
Code pls On Mon, 2 Sep, 2019, 9:20 PM nitin kumar, wrote: > On submitting data using text field of html getting error of > form2() got an unexpected keyword argument 'aname' > Where > Form2()- class defined in model > aname- attribute of class > In other way form2 is table with column Anne > Db

On submitting data using get errors

2019-09-02 Thread nitin kumar
On submitting data using text field of html getting error of form2() got an unexpected keyword argument 'aname' Where Form2()- class defined in model aname- attribute of class In other way form2 is table with column Anne Db - postgresql -- You received this message because you are subscribed to

Re: Django River - ModuleNotFoundError: No module named 'river'

2019-09-02 Thread Kean
Hi, Uninstalled django-river with pip3 then installed django-river into my venv, as well as added it to installed apps in settings. I’m still having the same issue, with no module named river found, please can you advise? n.b. please see pip freeze. altgraph==0.10.1 bdist-mpkg==0.4.4 bonjour-

Re: Tables in html tag on, won't stack

2019-09-02 Thread Kean
Hi Rax, This was an html issue for me in the end, in how the was table row and table data were coded. I resolved by coding in this way, and then data was listed. {{ item.name }} {{ item.surname }} Thank you for offering to help. Best, K On 2 Sep

Re: How to Sum subtract and multiply two integer fields

2019-09-02 Thread Suraj Thapa FC
😂 On Mon, 2 Sep, 2019, 7:09 PM Muhammed Bilal, wrote: > class Add(models.Model): >budget = models.IntegerField() >Expense = models.IntegerField() > > Now I would like to do a complete calculation for example budget - > Expense and budget + expense. Kindly hel me. > > -- > You received

How to Sum subtract and multiply two integer fields

2019-09-02 Thread Muhammed Bilal
class Add(models.Model): budget = models.IntegerField() Expense = models.IntegerField() Now I would like to do a complete calculation for example budget - Expense and budget + expense. Kindly hel me. -- You received this message because you are subscribed to the Google Groups "Djang

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

2019-09-02 Thread Pasquale
I have in mysite/urls.py: from django.contrib import admin from django.urls import include, path from django.contrib.auth import views as auth_views from django.conf import settings from .views import * urlpatterns = [     path('admin/', admin.site.urls, name="admin"),     path("places/", include

Please someone should help me fix this

2019-09-02 Thread KONE GOMPOU LOUA ALASSANE
You're working on windows: How did you process to activate your venv?( cd venv, cd Scripts, activate) So, You have to come back after venv activated? (cd.., cd ..) Now python manage.py runserver -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Tables in html tag on, won't stack

2019-09-02 Thread Rax Otero
Hi, Can I see how you structured your table? Best wishes, Rax On Sat, Aug 17, 2019 at 1:15 AM Kean wrote: > Hi, > > Ive created a table which returns all my data in my.html template. > > However, the problem is the second record tags onto the end of the first, > instead of wrapping, > > i.e/ >

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

2019-09-02 Thread Mahaveerchand Jain
Dear All, I have Windows Server 2016 , IIS 10 and the Database is MS SQL 2016. I am not sure about the compatibility and version of Django to use on Windows Server 2016 with IIS 10 and I want the Django to be integrated seamlessly with MS SQL server 2016 so any module or library suggestion

Re: Post request in foreign key details by providing id

2019-09-02 Thread Gabo LaTo
Have you already defined a view in django rest framework? El sáb., 31 ago. 2019 a las 16:45, Soumen Khatua () escribió: > Hi Folks, > At the time of post request I want to provide only ID and then I want to > fetch the details related to that ID from another model and then I want to > commit al

Re: Please someone should help me fix this

2019-09-02 Thread Suraj Thapa FC
Maybe use python3 manage.py runserver if you are on Linux computer On Mon, 2 Sep, 2019, 4:34 AM Sullivan Nnaji, wrote: > I have activated the virtual environment and CD into the project name and > manage.py was present but still can't run server > I always get an error of > File "manage.py", lin

Re: Please someone should help me fix this

2019-09-02 Thread Sandip Nath
First cd to your project folder. Once there create a virtual environment and enable the environment. The best ,the easiest and the smartest method is to use pipenv. 1. First install pipenv with: pip install pipenv 2. cd to your project folder. 3. Run the command: pipenv shell 4. Your virtual enviro

Re: Please someone should help me fix this

2019-09-02 Thread Tosin Ayoola
Can u send d screenshot of the error message you getting On Sep 2, 2019 00:04, "Sullivan Nnaji" wrote: > I have activated the virtual environment and CD into the project name and > manage.py was present but still can't run server > I always get an error of > File "manage.py", line 16 > From ex

Django bugfix releases: 2.2.5, 2.1.12, and 1.11.24

2019-09-02 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2019/sep/02/django-bugfix-releases-225-2112-11124/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails