How to specify name for ForeignKey field?

2007-05-07 Thread Suraj
any fields? I have not started creating models of those tables yet. But the database has it's own naming convention for relationship tables used for holding ManyToMany fields. Thanks & Regards, Suraj --~--~-~--~~~---~--~~ You received this message because

Re: How to specify name for ForeignKey field?

2007-05-08 Thread Suraj
y what I was looking for. > > If you're feeling enthusiastic, a fix to overcome this limitation I shall definitely try to implement the fix as suggested in ticket 785 once I get to the many_to_many part. Thanks & Regards, Suraj --~--~-~--~~~---~--~~ You

Unable to save m2m field in Inline Formset with many to many relation in django CreateView

2020-01-24 Thread Suraj
form.save() return super().form_valid(form) The problem is: All data of model Outcome and Course is saved except m2m field of Course model. I am stuck at this point. Any pointer in right direction will be highly useful. Thanks in advance, -- Suraj https://hacksj4u.wordpress.com ht

Inline formset for many to many relation

2020-01-24 Thread Suraj
super().form_valid(form) ``` All my data in Outcome and Course models saved successfully except m2m field of course model. Can anyone please guide me what I am doing wrong here. Thanks in advance, -- Suraj https://hacksj4u.wordpress.com https://github.com/SurajDadral -- You received this message

m2m field widget to add or update data as inline formset

2020-01-28 Thread Suraj
wise it should first store outcomes into database and then map them to course. Any guidance in right direction will be highly appreciated. Thanks, -- Suraj https://hacksj4u.wordpress.com https://github.com/SurajDadral -- You received this message because you are subscribed to the Goog

Re: How to render data from populated database (no user input) to html

2020-01-28 Thread Suraj
trap. > > Please any help would be truly appreciated. > You can use django-tables2 <https://django-tables2.readthedocs.io/en/latest/> to create tables from model data. It is very simple by using django-tables2. -- Suraj https://hacksj4u.wordpress.com https://github.com/Sur

Re: DatabaseError: (1146, "Table 'test_XXX.django_content_type' doesn't exist")

2010-10-28 Thread Suraj Jacob
alter the test_* tables, they obviously wont be there, because theyre created only while running the tests... The fix mite be as simple as putting the test_ tables in the skip set. - Suraj Jacob On Thu, Oct 28, 2010 at 14:56, girish shabadimath wrote: > > Hi all, > > im re-sending this m

Re: Data error

2010-10-28 Thread Suraj Jacob
means your object cannot be converted into string. You have to either provide a __unicode__ or __str__ for your model, or pick a particular field that you are trying to coerce with the rest of the string On Thu, Oct 28, 2010 at 15:15, Hussain Deikna wrote: > Hi, I am newbe in django and I have g

Re: 'str' object has no attribute 'resolve' Exception Location: C:\Python25\Lib\site-packages\django\core\urlresolvers.py in resolve,

2010-10-28 Thread Suraj Jacob
change it from (r"wap/di/sub",current_datetime) to (r'^wap/di/sub','current_datetime') On Thu, Oct 28, 2010 at 15:52, sami nathan wrote: > (r"^wap/di/sub",current_datetime) > -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

New to django..

2013-08-24 Thread suraj shukla
Hi, I am very new to django framework.. I would appreciate If I can get some tutorial to start on windows operating system... Thanks! -- 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

Re:

2020-08-14 Thread Suraj Kumar
<https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Suraj Kumar > *Sent: *Friday, August 14, 2020 7:32 PM > *To: *django-users@googlegroups.com > *Subject: * > > > > Hi guys, > > > > I am to new django. > > >

Re:

2020-08-14 Thread Suraj Kumar
Hello, Can anyone tell me What is the code for template path in setting.py On Fri 14 Aug, 2020, 21:01 Suraj Kumar, wrote: > Yes, I didn't include template path in setting.py. > So, that reason template doesn't exist error message coming > > On Fri 14 Aug, 2020, 2

[no subject]

2020-08-19 Thread Suraj Kumar
Hello Django Users, I want to know there is any need of knowledge in css, Html while developing website through django. I can also use css framework bootstrap instead of css. Suraj -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Issue in the models.py

2021-05-16 Thread Suraj Kumar
No, this solution not help for me. I am still getting same error. On Sun 16 May, 2021, 14:36 Chelsea Fan, wrote: > try this > > On Sun, May 16, 2021 at 11:40 AM Suraj Kumar < > surajsrivastava021...@gmail.com> wrote: > >> Hi everyone, >> >> I having so

[no subject]

2020-02-22 Thread Suraj Kumar
Do you know Automation through Python. I want to learn automation tools. Tools like appium, selenium -- 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-user

Re:

2020-02-22 Thread Suraj Kumar
Please guided me to where I have selenium python for automation On Sun 23 Feb, 2020, 3:53 AM Gurmeet Kaur, wrote: > I also know how to write selenium code in integration with Python. I can > help too. > > > Thanks, > Gurmeet Kaur > > On Sat, Feb 22, 202

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-27 Thread SURAJ TIWARI
who want to join this project kindly WhatsApp on this number +917800990208 On Tue, Feb 27, 2024 at 11:25 AM Starnford Chirwa wrote: > Im interested please add me. > > On Sun, Feb 18, 2024 at 6:48 PM SURAJ TIWARI > wrote: > >> 🚀 Join Our Django WhatsApp Bulk Messaging Pr

Call for Testing: Connection Pooling PR for Django Oracle

2024-05-06 Thread suraj shaw
4 Your contributions to this testing effort will play a crucial role in expediting the merging process. We highly appreciate your time and effort in helping make Django even better. Thank you for your support and dedication to the Django community. Best regards, Suraj Kumar Shaw -- You rece

Re: Multiple Database problem

2024-08-18 Thread suraj shaw
Yes, Its possible. Please follow this - https://docs.djangoproject.com/en/5.0/topics/db/multi-db/ Thanks Suraj On Wed, Aug 14, 2024 at 8:45 PM Dhanushpathi Prakash < dhanushpathiprak...@gmail.com> wrote: > Is there is possible to multiple database with a single app. How? > > --

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 curr

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 Simela*

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: 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 th

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 > "C:\Users\Meghanathan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\functional.

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: 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): > unique_key

Re: Directly Accessing Dictionary Values

2019-11-20 Thread Suraj Thapa FC
You can't On Wed, 20 Nov 2019, 3:57 pm Andrew Stringfield, wrote: > First, thank you for the reply Suraj! I think that I misstated what I was > really trying to do. I am trying to access the dictionary values directly > in the Template and not in the View. I am tr

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): > >> Hi

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 sati

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: 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 for

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 1000

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 Rokade

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 . >> >> For

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 sho

Re: Dajgo Validation error

2020-01-09 Thread Suraj Thapa FC
e > = models.BooleanField(_('active'), default=True)is_staff = > models.BooleanField(_('staff status'),default=False)date_joined = > models.DateTimeField(_('date joined'), default=timezone.now)* > > > I already did that but I want to rai

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 missi

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 o

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 email

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: 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 sub

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 righ

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 dja

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 p

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 w

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: 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, > Sant

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 w

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 unsubscrib

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: 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 s

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

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 group

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:* SEL

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 T

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 registe

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: 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 >

[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 django-users+unsubscr...@googlegroups.

Re:

2019-07-29 Thread Suraj Thapa FC
>> >>> 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. >>> >>> >>

Re:

2019-07-30 Thread Suraj Thapa FC
ple-file-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 e

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 django-users+unsubscr

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 on

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&utm_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 emai

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

[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 thi

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 unsubscrib

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 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 django-users+unsubscr...@googl

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-users+unsubscr...@googlegroups.com.

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. elo

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 an

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 v

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 django-users+unsubscr...@googl

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 django-users+unsubscr...@go

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 = models.ForeignKey(courses,o

Re: Retrieving data from multiple tables

2019-08-21 Thread Suraj Thapa FC
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

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

Re: Retrieving data from multiple tables

2019-08-21 Thread Suraj Thapa FC
n there has 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 A

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 becaus

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'), )

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 r

Re: Django sql raw query to queryset

2019-08-22 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 * >> FRO

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 thi

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 dis

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

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 solve

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: 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: 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

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) : ..

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 django-users+unsubscr...@googlegroups.com

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 unsubscri

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

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 t

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-users+unsubscr...@googlegrou

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 w

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 us

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 rando

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 django-users+unsubscr...@googlegroups.co

  1   2   >