Re: Seasoned Django Developer

2021-03-03 Thread Suraj Thapa FC
Yess On Thu, 4 Mar, 2021, 10:01 am Noel Simela, wrote: > Good day, > > I am looking for a good django developer to assist with some elements of a > project. > If you are familiar with Class Based Views , Signal and Haystack please > respond. > > No chancers please. > > -- > *Noel Nqabeni

Re: Live updates of Admin's list_display data

2020-06-30 Thread Suraj Thapa FC
Use channels On Tue, 30 Jun, 2020, 4:36 pm Olivier, wrote: > Hello, > > Django Admin implements list_display settings with which you can create > columns of database-extracted or computed values. > > Is there to update these values without requiring Django Admin users to > reload or refresh

Re: Can you help me out?

2020-05-20 Thread Suraj Thapa FC
Django channels On Wed, 20 May, 2020, 9:07 pm chaitanya orakala, wrote: > Hi Meera, > Please go through this link, it might help you > https://chatterbot.readthedocs.io/en/stable/django/ > > how ever if you are ok with third-party applications, you can choose > Zendesk or Drift. > > Thank You

Re: simple Rest_framework cannot import name in api view

2020-04-04 Thread Suraj Thapa FC
MEGA NATHAN wrote: >> >> yeah bro >> >> >> >> >> >> *Regards* >> Meganathan G >> >> >> >> On Wed, Nov 13, 2019 at 10:15 AM Suraj Thapa FC >> wrote: >> >>> It should be like.. APIView not like

Re: Django authentication micro service Rest API utilization

2020-03-31 Thread Suraj Thapa FC
Read about jwt token refresh and interceptors in spa On Tue, 31 Mar 2020, 11:00 pm crack studio, wrote: > Hello Everyone, > > I want to implement and integrate different, separately Django service. > Suppose I have these two different projects. > > 1. Authentication *rest API* ( user can

Re: Django ORM query with joins

2020-03-30 Thread Suraj Thapa FC
Sorry its like this... posts.objects.values('id', 'details', 'user__name' ) On Mon, 30 Mar 2020, 7:46 pm Suraj Thapa FC, wrote: > posts.model.values('id', 'details', 'user__name' ) > > On Mon, 30 Mar 2020, 5:26 pm Anoop Thiparala, > wrote: > >> I need help with a djan

Re: Django ORM query with joins

2020-03-30 Thread Suraj Thapa FC
posts.model.values('id', 'details', 'user__name' ) On Mon, 30 Mar 2020, 5:26 pm Anoop Thiparala, wrote: > I need help with a django query...I have two models > > 1)* POSTS* > ==>id > ==>details > ==>user(foreign key to user table) > > 2) *USER* > ==>id > ==>email > ==>name > > *SQL VERSION:*

webcam to rtmp server

2020-03-27 Thread Suraj Thapa FC
hey guys.. i want to broadcast my webcam stream from browser to an rtmp server... i had use obs and its working fine... any ideas how can i do this in my website.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Django channel and gunicorn

2020-03-19 Thread Suraj Thapa FC
You can't use gunicorn with django channels... Use Daphne or uwsgi etc On Wed, 18 Mar 2020, 11:49 pm N'BE SORO, wrote: > hi i have a problem with django channel and gunicorn. > > I don't know how to configure my project so that the websocket can pass. > > > thank you. > > -- > You received this

Re: It is Possible to send html File through Django Rest api? Please suggest

2020-03-19 Thread Suraj Thapa FC
No On Thu, 19 Mar 2020, 10:53 am venna venkatReddy, wrote: > It is Possible to send html File through Django Rest API. I need how to > send Template/one.html file to Other Application when they hit my API. > > Please respond or suggest any url > > -- > You received this message because you are

Re: why this serializer class is here

2020-03-17 Thread Suraj Thapa FC
You can write serializers anywhere On Tue, 17 Mar 2020, 10:14 am sagar ninave, wrote: > i dont know? thats why i am asking > > On Mon, Mar 16, 2020 at 6:01 PM Suraj Thapa FC > wrote: > >> Does it matters..? >> >> On Mon, 16 Mar 2020, 10:29 pm sagar ninave,

Re: why this serializer class is here

2020-03-16 Thread Suraj Thapa FC
Does it matters..? On Mon, 16 Mar 2020, 10:29 pm sagar ninave, wrote: > > > I want to know why this serializes class here we can write it in separate > file too so why here? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Effecient Text Search

2020-03-15 Thread Suraj Thapa FC
You should look for elasticsearch On Sun, 15 Mar 2020, 9:08 am Will Meyers, wrote: > Hi all, > > Just a quick question. I'm working on a general search function for my > application and just wanted your opinions before I do any sort of > benchmarking. > > Right now I have a PostgreSQL database

Re: Count the number of emails sent everyday

2020-03-13 Thread Suraj Thapa FC
You can use some 3rd party apis On Fri, 13 Mar 2020, 4:42 pm Santhosh sridhar, wrote: > Hi, > I am working on django and I trigger emails to multiple email IDs in > different scenarios, Is there a way to get the count of emails sent > everyday instead of storing it in tables. > > Regards, >

Re: How to create multipage forms with different models

2020-03-03 Thread Suraj Thapa FC
There can be only one view for one page You have to implement both in same view On Tue, 3 Mar 2020, 2:58 pm victor awakan, wrote: > What I meant was I want one form to be saved in one model and the second > form to be saved in another model. I did that using form-tools but I want > to learn

Re: rest-auth vs djoser

2020-02-05 Thread Suraj Thapa FC
Create your own On Thu, 6 Feb 2020, 2:58 am Emmanuel klutse, wrote: > Hello team, > hope we are all doing great. > I'm a beginner working on my first DRF project, I am trying to build an > e-commerce site. > I want to know the difference between django rest-auth and djoser, and > which of them

Re: want to create multiple tables for the same app in Django

2020-02-02 Thread Suraj Thapa FC
You must be trolling... On Mon, 3 Feb 2020, 9:55 am Pawan Kumar, wrote: > Thanks Team, > > Definitely i am able to create multiple tables using models . > But I was planning to implement a solution with following scenario-- > > I have 16 different tables & these can be rendered to multiple html

Re: some value for primary key

2020-01-21 Thread Suraj Thapa FC
Just right a simple python function With random number generation... And call it where you want to use it On Wed, 22 Jan 2020, 12:03 am Soumen Khatua, wrote: > Hi Folks, > > I want to start my primary key from saome random number like: (onwards) > but not from 1. How I can do that in

Re: Does a custom user model require first_name and last_name fields

2020-01-20 Thread Suraj Thapa FC
Ofcourse you can... It will not create any problem On Mon, 20 Jan 2020, 10:49 pm graeme, wrote: > I have people's first names and last names in another model (because not > all people in the DB are users). Therefore if I store names in the user > model I will duplicate data. > > I think the

Re: A little help here please

2020-01-17 Thread Suraj Thapa FC
Use django orm On Fri, 17 Jan 2020, 8:48 pm Stephen, wrote: > How can I join two database tables together please?. I'm trying to display > every object in a table that is linked to an object in another table. I > can't seem to get it to work > > -- > You received this message because you are

Re: Django ORM

2020-01-17 Thread Suraj Thapa FC
Use select related in django orm On Fri, 17 Jan 2020, 7:57 pm Soumen Khatua, wrote: > Hi Folks, > *Actually I'm extending User table in some other table and this current > table I'm extending soe other table. But this time I want to filter by > using first table username How can i Do that?* > >

Re: Django

2020-01-15 Thread Suraj Thapa FC
Google it On Wed, 15 Jan 2020, 8:21 pm Deepak Singh, wrote: > How to download json file from the url and convert it into csv format > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

Re: Password Reset

2020-01-10 Thread Suraj Thapa FC
https://github.com/SurajFc/Django-DRF-Boilerplate-with-otp-verification On Fri, 10 Jan 2020, 12:35 pm Soumen Khatua, wrote: > Hi Guys, > In Django we have some inbuilt class for password rest and confirmation. > But In Django rest framework ,How can I do that? > > Please share any code snippet

Re: Csrf_exempt

2020-01-09 Thread Suraj Thapa FC
Code...? On Thu, 9 Jan 2020, 8:40 pm Soumen Khatua, wrote: > Hi Folks, > > In django rest framework,I extend the LoginApiView(APIView) but when I'm > passing username and password in browser it logn successfully but in post > man I'm getting : > > > *{"detail": "CSRF Failed: CSRF token

Re: Dajgo Validation error

2020-01-09 Thread Suraj Thapa FC
s.BooleanField(_('staff status'),default=False)date_joined = > models.DateTimeField(_('date joined'), default=timezone.now)* > > > I already did that but I want to raise validation error that email > should be unique and password should be alphanumeric character in json

Re: Dajgo Validation error

2020-01-08 Thread Suraj Thapa FC
For email you can set email field in model as unique=True and the password should be stored in hash.. On Wed, 8 Jan 2020, 9:37 pm Soumen Khatua, wrote: > Hi Folk, > > What is the process to validate fields in django rest framework? > like email and phone number should be unique and password

Re: Hello Everbody! Happy New Year

2020-01-05 Thread Suraj Thapa FC
Yes ping me On Sun, 5 Jan 2020, 3:37 am Desh Deepak, wrote: > Can you explain details. > Some example of code...!! > > > Thanks in advance > > On Sun, 5 Jan 2020, 00:03 Evil Kunt, wrote: > >> Hey , >> >> For rest , if you like i can help you with i use DRF , Falcon and HUG >> mostly . >> >>

Re: 'str' object has no attribute 'objects'

2019-12-28 Thread Suraj Thapa FC
Cr is string not a model that's why this error is coming... change the name of cr variable in which you are taking the request data On Sat, 28 Dec 2019, 4:41 pm gaurav jain, wrote: > Show the backend code of the post request > Regards > Gaurav Jain > > On Sat, 28 Dec, 2019, 4:31 pm Chetan

Re: How can we achieve backend continuously updating front end ?

2019-12-19 Thread Suraj Thapa FC
Yes.. Use django channels or ajax polling On Thu, 19 Dec 2019, 8:03 pm sowmya, wrote: > In views.py function computes and results in lakhs of records. For this > computation in the back-end taking lots of time. I want to know a mechanism > in which I can update to front end after processing

Re: User is not logging in admin panel

2019-12-16 Thread Suraj Thapa FC
Where's the code On Mon, 16 Dec 2019, 5:53 pm Tafadzwa Marshal, wrote: > hello, your problem is easy to solve. The 'createsuperuser' command > creates a user with the 'staff' attribute set to true. When you create a > user through > the model thats inheriting from the User model, the default

Live notifications using channels

2019-12-11 Thread Suraj Thapa FC
Can anyone guide me to implement live notifications system in DRF. -- 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: Unable to create a new virtual environement 'test'

2019-12-04 Thread Suraj Thapa FC
Wrote the following Virtualenv test On Wed, 4 Dec 2019, 4:57 pm Hima Bindu chowdary, wrote: > I had created a virtualwrapper then had to create a virtual env called test > when i ran the following command i got this : > > C:\Users\User>py -m pip install virtualenv test > Requirement already

Re: Link a .css to a Html template

2019-12-02 Thread Suraj Thapa FC
Remove cache and try again On Tue, 3 Dec 2019, 3:39 am Leó Horváth, wrote: > hi, > I did what Kevin requested, now console says "GET /pages/ HTTP/1.1" 200 > 536 and the style still doesn't work. > Any ideas? > Thanks, > Leó > > Kevin Dublin ezt írta (időpont: 2019. dec. 2., H, > 21:41): > >>

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Suraj Thapa FC
to remove: > > {% for question in unique_key_object %} >{{ question.filename }} >{% endfor %} > > and just have: > {{ unique_key_object.filename }} > > > > > On Tuesday, November 19, 2019 at 10:59:07 PM UTC-5, Suraj Thapa FC wrote: >> >&

Re: Directly Accessing Dictionary Values

2019-11-19 Thread Suraj Thapa FC
Return the unique key object... Like return render(request, 'abc.html',unique_key) On Wed, 20 Nov 2019, 9:18 am Andrew Stringfield, wrote: > Hello all, > > I am trying to access Dictionary values directly. Here is my view: > > def unique_key_query(request, unique_key): >

Re: mysql data connectivity problem

2019-11-19 Thread Suraj Thapa FC
Refer the docs... Its easy On Tue, 19 Nov 2019, 8:16 pm o1bigtenor, wrote: > On Tue, Nov 19, 2019 at 7:30 AM Prof soul wrote: > > > > Hi i'm soul i'm new to django and late, i got an idea to handle the > django but there is still lack of database connectivity with django > anybody know about

Re: simple Rest_framework cannot import name in api view

2019-11-12 Thread Suraj Thapa FC
It should be like.. APIView not like APIview On Wed, 13 Nov 2019, 9:33 am MEGA NATHAN, wrote: > patterns = getattr(self.urlconf_module, "urlpatterns", > self.urlconf_module) > File >

Re: Django Query

2019-11-12 Thread Suraj Thapa FC
You can simply do this with a single login On Tue, 12 Nov 2019, 6:59 pm Deepak Singh, wrote: > I have a survey form for students and teachers. Questions are different > for students and teachers, so I want to provide them with different login. > How do I create different login pages in Django

Multi stage form

2019-11-11 Thread Suraj Thapa FC
After creating a multi-stage form How do I restrict the access to the particular part of the form to a particular user. Suppose I have 3part of the form... User1 can access part1 of the form after that user2 can access the part2 of the form and so on... . . . Admin cna View and access all part

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
I'm integrating the payment gateway in a website... They provided the documentation in python... All I have to do is make a post request to that url with the given data... On Fri, 8 Nov 2019, 5:02 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 12.06, Suraj Thapa FC wrote: >

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
Actually i want to made a post request to the url with post_data On Fri, 8 Nov 2019, 2:27 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 08.26, Suraj Thapa FC wrote: > > How do I convert the requests into render or redirect > > > > response = reque

Converting requests

2019-11-07 Thread Suraj Thapa FC
How do I convert the requests into render or redirect response = requests.post(url,data=post_data, headers={"Content-type" :"application/json" }).json() -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re:

2019-11-05 Thread Suraj Thapa FC
Send it then On Tue, 5 Nov 2019, 5:38 pm Paras Jain, wrote: > on hitting submit i have to send email and password to user email id which > will be used for login in django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: How to retrieve data from different related model (This post was posted earlier on but was deleted due code not being clear)

2019-10-24 Thread Suraj Thapa FC
Try select_related() On Fri, 25 Oct, 2019, 1:15 AM Gil Obradors, wrote: > What field of Category you want to get from post model ? name? > maybe k.category instead of k.name? ( template) > > Or explain better :P > > > Missatge de Benedict Uwazie del dia dj., 24 d’oct. > 2019 a les 21:19: > >>

Re: database could't connect in python to atom

2019-10-22 Thread Suraj Thapa FC
You are using wrong syntax for connecting sql On Wed, 23 Oct, 2019, 8:38 AM MEGA NATHAN, wrote: > Hi. > > AttributeError: module 'mysql.connector' has no attribute 'connect' > > > > > > regards > Meganathan, > > -- > You received this message because you are subscribed to the Google Groups >

Re: Updates in production not showing up

2019-10-22 Thread Suraj Thapa FC
What's the error On Tue, 22 Oct, 2019, 9:02 PM Tommy Delage, wrote: > I'm using django suit on digitalocean > > Anything I do in the files *.py doesn't show up in the production > environement, > > DigitalOcean doesn't want to go and take a look because those are files in > the application, >

Django-jwt use cookie instead of Authorization header

2019-10-18 Thread Suraj Thapa FC
Django-jwt use cookie instead of Authorization header I want to build the SPA application using Django Rest Framework as a back-end. The application will use JsonWebToken authentication. For maximum security, I want to store the authentication token inside of httpOnly cookie, so it will not be

Django cookie in rest api

2019-10-18 Thread Suraj Thapa FC
After reading the cookies.. How do i set them in headers... -- 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

Re: how to take result from 2 models

2019-10-13 Thread Suraj Thapa FC
Use ajax On Mon, 14 Oct, 2019, 4:10 AM sotiris moustogiannis, wrote: > i have 2 models that Appointments.shopid is foreign key from Shops.id model > > class Shops(models.Model): > name = CharField(max_length=50) > username = CharField(max_length=60) > shopname = CharField(max_length=50) > city

Re: CSS not working

2019-10-13 Thread Suraj Thapa FC
Ya sure On Sun, 13 Oct, 2019, 6:34 PM No Name, wrote: > guys can we make a groupchat on whatsapp? > > On Fri, Oct 11, 2019 at 4:19 AM yasar arafath Kajamydeen < > yasar...@gmail.com> wrote: > >> Hi All, >> >> I just added style sheet in my application but its not working , Please >> try to help

Re: migrate error in manage.py

2019-10-11 Thread Suraj Thapa FC
Use python3 On Fri, 11 Oct, 2019, 11:01 PM Ralph Barhydt, wrote: > When I try to run "python manage.py migrate" I get an error "invalid > syntax" that points to ") from exc". How can I fix this? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: CSS not working

2019-10-10 Thread Suraj Thapa FC
Send the directory structure of the project On Fri, 11 Oct, 2019, 9:29 AM yasar arafath Kajamydeen, wrote: > Hi Suraj, > > As for your suggestion i tried like this but its not working , Please do > needful. > > > > STATIC_URL = '/static/' > STATICFILES_DIRS = [ > os.path.join(BASE_DIR,

Re: CSS not working

2019-10-10 Thread Suraj Thapa FC
In your settings.py At STATICFILES_DIRS you had write basedir, style. Css instead style.css write "static" On Fri, 11 Oct, 2019, 8:49 AM yasar arafath Kajamydeen, wrote: > Hi All, > > I just added style sheet in my application but its not working , Please > try to help me. > > > Setting.py > >

Re: FK forms in a Single CreateView

2019-10-10 Thread Suraj Thapa FC
ews. > Thanks. > Shazia > > On Thursday, October 10, 2019 at 4:13:56 PM UTC-7, Suraj Thapa FC wrote: >> >> What do you want to do... With it... >> Use Create it for creating object.. >> >> >> def view() : >> model.objects.create() >> model2.obj

Re: FK forms in a Single CreateView

2019-10-10 Thread Suraj Thapa FC
orting and using it. > @Suraj can you share an example. > > Regards, > > Shazia > > On Thu, Oct 10, 2019 at 3:27 PM Suraj Thapa FC > wrote: > >> Just import and use it.. >> >> On Thu, 10 Oct, 2019, 10:51 PM Shazia Nusrat, >> wrote: >> >>

Re: FK forms in a Single CreateView

2019-10-10 Thread Suraj Thapa FC
Just import and use it.. On Thu, 10 Oct, 2019, 10:51 PM Shazia Nusrat, wrote: > ForeignKey. > > On Thu, Oct 10, 2019 at 9:18 AM Mohammad yunus wrote: > >> What is mean FK Shaziya >> >> On Thu, 10 Oct 2019, 9:19 pm Shazia Nusrat, >> wrote: >> >>> Hi I have a situation to manage multiple models

Protecting the files...

2019-10-07 Thread Suraj Thapa FC
How do I protect the media and static files... From unauthorised access. -- 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: How to generate a unique 9 digit random id for every registered user?

2019-10-04 Thread Suraj Thapa FC
Use uuid On Fri, 4 Oct, 2019, 8:23 PM yashwanth .k, wrote: > Hello, > > My model consists of user details such as username and his id which is > auto-generated by DB(indexing). > Apart from this, I need to assign a random unique 9 digit number for every > user. > The reason for assigning a

Re: cannot import path in urls

2019-10-02 Thread Suraj Thapa FC
In urls.py Write from django.urls import path On Thu, 3 Oct, 2019, 10:02 AM MEGA NATHAN, wrote: > Hi. > > > i'm meganathan beginer for django > > urls cannot import for path . how to reslove > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: best option for Front End Design in Django

2019-09-26 Thread Suraj Thapa FC
React On Thu, 26 Sep, 2019, 1:53 PM Balaji Shetty, wrote: > Hi > > Can anybody please tell me what are the different options to create GUI > (User Interface ) for Front End in Django. > > I got answer like Angularjs, Nodejs, HTML5 or CSS. > > Which one is easier as well as mobile compatible if

Django query set

2019-09-15 Thread Suraj Thapa FC
https://hastebin.com/powupucitu.sql Can anyone convert this into queryset... -- 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 SSO

2019-09-14 Thread Suraj Thapa FC
How to implement Single Sign(SSO) with Django Any idea..? .. -- 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

Re: django.db.utils.OperationalError: no such table:

2019-09-07 Thread Suraj Thapa FC
1. python manage.py migrate - - run-syncdb On Sat, 7 Sep, 2019, 6:30 PM Arnav Rastogi, wrote: > 1. i remove the db.sqlite file and pycache > > 2. re run the makemigrations and migrate command > > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: How to create user registration

2019-09-06 Thread Suraj Thapa FC
Check out this https://github.com/SurajFc/Django-DRF-Boilerplate-with-otp-verification On Fri, 6 Sep, 2019, 5:14 PM VIJAY RAJA, wrote: > How to create user registration forms > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Django boilerplate with otp verification

2019-09-04 Thread Suraj Thapa FC
https://github.com/SurajFc/Django-DRF-Boilerplate-with-otp-verification -- 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

DRF Permissions

2019-09-03 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: 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 >

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

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",

Re: TypeError: expected string or bytes-like object

2019-08-30 Thread Suraj Thapa FC
Code pls On Fri, 30 Aug, 2019, 6:06 PM Soumen Khatua, wrote: > Hi Folks, > > After do some modification in models.py like I remove some column and add > some column in my models,now I'm getting this error: > > *TypeError: expected string or bytes-like object* > > > Please tell me how can i

Re: Django sockets

2019-08-28 Thread Suraj Thapa FC
Thanks i did it with Django channels On Wed, 28 Aug, 2019, 7:20 PM nm, wrote: > > Perhaps you're looking for Django Channels? > <https://channels.readthedocs.io/en/latest/> > > On Tuesday, 27 August 2019 15:08:47 UTC+2, Suraj Thapa FC wrote: >> >> Anyone k

Django sockets

2019-08-27 Thread Suraj Thapa FC
Anyone know making chat app using sockets in rest api -- 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

Django real-time chat app

2019-08-26 Thread Suraj Thapa FC
Anyone have real-time pluggable chat system app in django. -- 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

Re: Django sql raw query to queryset

2019-08-23 Thread Suraj Thapa FC
Invalid field name error On Fri, 23 Aug, 2019, 11:58 AM Sipum, wrote: > You can use Queryset like - > > course_review_report.objects.select_related('courses') > > On Fri, 23 Aug, 2019, 11:07 AM Suraj Thapa FC, > wrote: > >> SELECT * >> FROM cours

Django sql raw query to queryset

2019-08-22 Thread Suraj Thapa FC
SELECT * FROM course_review_report LEFT JOIN courses ON course_review_report.cid = courses.cid Can anyone pls write the querryset for the above sql query -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Django db query

2019-08-22 Thread Suraj Thapa FC
class courses(models.Model): level = ( ('beginner', 'Beginner Level'), ('intermediate', 'Intermediate Level'), ('expert', 'Expert Level'), ('all level', 'All Level'), ) type = ( ('live', 'LIVE'), ('on demand', 'On Demand'), )

Re: Looking for Django registration API

2019-08-22 Thread Suraj Thapa FC
Search djoser On Thu, 22 Aug, 2019, 12:15 AM Sandip Nath, wrote: > Are there any ready to use user authentication API for Django where user > can register not only with username, password and email but also with date > of birth, profile-url, picture etc? > > -- > You received this message

Re: Retrieving data from multiple tables

2019-08-21 Thread Suraj Thapa FC
s to be some foreignkey there I guess your > "courses" table should have CID as foreignkey. May be I am wrong. > > > On Wednesday, 21 August, 2019, 08:26:52 pm IST, Suraj Thapa FC < > surajthap...@gmail.com> wrote: > > > Thanks... > > On Wed, 21 Aug, 2019,

Re: JWT Token

2019-08-21 Thread Suraj Thapa FC
token = request. Meta['HTTP_AUTHORIZATION'] data = {'token' : token} payload_decoded = jwt.decode(token, settings.SECRET_KEY) try: valid_data = VerifyJSONWebTokenSerilaizer().validate(data) user = valid_data['user'] self.request.user = user except: pass On Thu, 22 Aug,

Re: Retrieving data from multiple tables

2019-08-21 Thread Suraj Thapa FC
that field names could have been c.course.cid and > c.course.course_title, probably more meaningful. > > Again, convention is for convenience. > > Cheers. > ==== > On Wednesday, August 21, 2019 at 2:46:12 PM UTC+5:30, Suraj Thapa FC wrote: >> >> This is

Retrieving data from multiple tables

2019-08-21 Thread Suraj Thapa FC
This is my model class courses(models.Model): cid = models.UUIDField(default=uuid.uuid4, editable=True, primary_key=True) course_title = models.CharField(max_length=255, default="") class course_rating(models.Model): cr_id = models.BigAutoField(primary_key=True) cid =

Uploading multiple files with rest api

2019-08-16 Thread Suraj Thapa FC
I want to upload Multiple files without using models to a specific folder in rest api -- 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

Saving files with rest apu

2019-08-14 Thread Suraj Thapa FC
How to save multiple files in a specific folder without using models in a rest api -- 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

Saving files to a specific folder in rest api

2019-08-14 Thread Suraj Thapa FC
How can i save multiple files? With rest api in a specific folder -- 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

Getting data from the URL in Django get request

2019-08-13 Thread Suraj Thapa FC
How can I fetch the particular field from. URL in get request For eg the URL is 192.168.0.1:3000/course/5d567hfbjy7/abc I want to fetch "5d567hfbjy7" from the url -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Postgres along with Mongodb

2019-08-12 Thread Suraj Thapa FC
Sir, how can I implement it..? On Mon, 12 Aug, 2019, 8:10 PM Jani Tiainen, wrote: > Hi. > > Yes you can. Of course since mongodb isn't relational database you get > best experience by using native python api to mongodb and Django orm for > postgres. > > > ma 12. elok. 20

Postgres along with Mongodb

2019-08-12 Thread Suraj Thapa FC
How can I use postgres along with Mongodb Different table different db -- 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 serializer constructor

2019-08-12 Thread Suraj Thapa FC
Is there any way I can initialize the value of uuid in serilaizer or maybe in view -- 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 models and json integration

2019-08-10 Thread Suraj Thapa FC
Can you pls elaborate or have any working code On Sat, 10 Aug, 2019, 9:40 PM Andrew C., wrote: > Two options: > > 1) Save the JSON files and link it with a FileField > > 2) Use PostgreSQL’s Django-specific JSONField. > > On Sat, Aug 10, 2019 at 9:46 AM Suraj Thapa FC &g

Django models and json integration

2019-08-10 Thread Suraj Thapa FC
How can I linked a JSON file with my db... Json files contains the key value pair of the user data.. If the id in the db and the id in the json files matches i can fetch and read it.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

[no subject]

2019-08-10 Thread Suraj Thapa FC
How do I write my front-end form response in.. .json file -- 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

Re: Start-up project for fresher student:

2019-08-03 Thread Suraj Thapa FC
Ok On Sat, 3 Aug, 2019, 7:30 PM LostCitizen, wrote: > Im working in a startup based in Barcelona (Spain) if you are willing to > help let me know! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

Email activation confirmation

2019-08-01 Thread Suraj Thapa FC
https://www.reddit.com/r/django/comments/ckk2v8/email_activation_confirmation/?utm_medium=android_app_source=share -- 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

Django otp help

2019-08-01 Thread Suraj Thapa FC
Can anyone help me with Django otp in email -- 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

Something about django

2019-07-31 Thread Suraj Thapa FC
Is there any better way with proper good documentation about email verification using jwt. -- 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:

2019-07-30 Thread Suraj Thapa FC
ile-field > > The official way is probably still in progress: > https://code.djangoproject.com/ticket/28554 > > On Tue, Jul 30, 2019 at 12:51 PM Suraj Thapa FC > wrote: > >> Actually I'm asking to store multiple files in a single model field and >> handling each of the

Re:

2019-07-29 Thread Suraj Thapa FC
gt; >>> TL; DR; you can't. >>> >>> You though can upload multiple files just fine you just need to handle >>> them manually. >>> >>> Also if you plan to keep files around your models must enable that. >>> >>> >>> m

[no subject]

2019-07-29 Thread Suraj Thapa FC
How can I create a file field which one can upload Multiple files in it... -- 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