Re: how to deploy django on cpanel or server

2019-03-25 Thread Aayush Bhattarai


You can use Free Hosting Provider like Heroku and Python anywhere for 
> hosting your site.
>
 

>  Paid one include digital ocean and many more.
>
Just Google 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.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98550834-ff68-4fd1-a0cb-8302b9537a4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: add Image Field in model

2019-03-25 Thread Aayush Bhattarai

>
> *Dude Use this code*
>

*image = models.ImageField(upload_to='media/') *
*and also make sure to install pillow*

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/96968d3f-bdaa-406e-9116-7093961c5300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Web Push Notification in Django

2019-03-25 Thread Aayush Bhattarai
*I am working on blog project and I wanted to add Web Push Notification in 
Django. I have researched a lot. I have not found proper answer on it.*
*Looking for good answer. Thank You.*

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fae73806-d58e-4c70-88f4-59375e0af567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Web Push Notification in Django

2019-03-25 Thread Aayush Bhattarai
Thanks dude. That's was very helpful.

On Monday, 25 March 2019 22:13:43 UTC+5:45, Aayush Bhattarai wrote:
>
> *I am working on blog project and I wanted to add Web Push Notification in 
> Django. I have researched a lot. I have not found proper answer on it.*
> *Looking for good answer. Thank You.*
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d17a4372-34a3-4568-9a68-2e396ec6a1d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django send_mail

2019-03-27 Thread Aayush Bhattarai


[image: isjs.PNG]
How to send this form in django send_mail. Thanks For Your 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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2701bc34-cd91-4e24-8be9-b17bfab31f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 1054, "Unknown column 'userprofile_user.phone' in 'field list'"

2019-03-27 Thread Aayush Bhattarai
*First make migrations*
*python manage.py makemigrations YourAppName*

*and then migrate *
*python manage.py migrate*

*and create superuser*

*Maybe your error may be fixed.*

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d380ea18-2667-47f9-95a5-1c372ae7f5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need some sample project coding in Django t

2019-03-29 Thread Aayush Bhattarai
Hey you can see my Django blog on GitHub.
https://github.com/coder-Aayush/django_blog

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3abdc3aa-0b9c-4ff4-8943-5e77f0329ccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
*Hey Buddy, Can I change my Django Interface. I don't like such interface 
and I want to change it. *

[image: Capture.PNG]
*I want to change like this.*
*Thanks For Your Support*

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ea1b8330-9153-4d3d-9260-9c8c221dad86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
Yes I read but not related to my questions.

On Thursday, 11 April 2019 09:58:30 UTC-7, Aayush Bhattarai wrote:
>
> *Hey Buddy, Can I change my Django Interface. I don't like such interface 
> and I want to change it. *
>
> [image: Capture.PNG]
> *I want to change like this.*
> *Thanks For Your Support*
>
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/25e34761-1848-4023-a151-bae28641d68c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Changing Admin Interface in Django

2019-04-11 Thread Aayush Bhattarai
Yes I want to change everything.

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/309a5372-abb7-4525-8b95-f6e4528bd6f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to Update Database

2019-04-26 Thread Aayush Bhattarai
How can I update database. I am not using forms.py and I am using function 
based view. Can you how example and link for docs. Thanks for 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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41384b09-ed76-4485-9518-8dc10e26f2fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django URLs

2019-04-28 Thread Aayush Bhattarai
Hello Everyone,

I want to pass two url in url of template. I have added in urls.py also.

code:-
Index.html
**
*In Up I want to pass slug. What Should I do.*

*urls.py:*

*path("detail//"),*

*Thanks For 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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e9ecfa89-1175-405a-b3d4-f3808b7f2b0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adding Category

2019-06-03 Thread Aayush Bhattarai
Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a 
category in a drop down and when anyone clicks it should be gone to 
category.*
*What will be the best method for doing this? Follow the step of DRY. 
Thanks for your Time.*

[image: Capture.PNG]

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a0a0299-895f-4951-bd2e-98c00e69beda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding Category

2019-06-03 Thread Aayush Bhattarai
Hey, dude didn't get what you are saying. Can you show me via example?

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a50e8e6b-4b5f-4901-b019-67074733e0f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get Value of Drop Down

2019-06-26 Thread Aayush Bhattarai
Hi,
I have encountered a problem. How can I get the value of dropdown, Boolean 
Field and send it to the database. Note: I am not using forms.py files and 
using a function-based view. I have created own form in HTML. 
I am not able to match the value of database and value in html dropdown.

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dcde52cb-b6c6-4271-8d0a-8931fcbbf547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


insert or update on table "app_job" violates foreign key constraint "app_job_user_id_f90a6dd9_fk_accounts_user_id" DETAIL: Key (user_id)=(3) is not present in table "accounts_user".

2019-07-07 Thread Aayush Bhattarai


[image: Capture.PNG]


*I have used a function-based View to get data from post Request. I need to 
get many data that also include a primary key field too. I need to push 
data into two models. While doing so, I encountered an error.*

#accounts models.py
from django.db import models
class User(models.Model):
user_id = models.PositiveIntegerField(blank=True)

name = models.CharField(max_length=200)
phone = models.CharField(max_length=200)
email = models.EmailField(max_length=254)

#app models.py
from accounts.models import User #from accounts models.py
class job(models.Model):
user = models.ForeignKey(User, on_delete=models.DO_NOTHING)
..

#views.py
data = job(.,map_link=map_link,user_id=user_id)
data.save()
info=User(name=name,email=email,phone=phone,user_id=user_id)
info.save()

*Error Message: http://dpaste.com/03Z0EPB *

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f083194-4a44-4f09-94d2-5479fed45ab5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django post request faild on user_id

2019-07-09 Thread Aayush Bhattarai
Hello, My Question is here.
It will be better if you give me a full answer. 
https://stackoverflow.com/questions/56919062/insert-or-update-on-table-app-job-violates-foreign-key-constraint-app-job-use

Thanks for your 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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1abdfbbf-f1e9-492e-86e8-f03c385410e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django SEO

2020-06-21 Thread Aayush Bhattarai
Is there any updated packages for doing SEO stuff like adding *meta title, 
meta description*,...

Also, Recommend any best practice or Any Code reference for it without a 
package.

-- 
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 the web visit 
https://groups.google.com/d/msgid/django-users/fb2bd372-82c1-4d1a-8b5c-6059c141ff66n%40googlegroups.com.