Related records on same page with DetailView

2021-06-23 Thread David Crandell
Hello, I just don't stop having problems LOL. All I want to do is display related Subcats on the detail page under the Category detail. Seems like the exact same thing as the Books/Publisher demo but I just can't get it to work. It keeps saying my field doesn't exist, or it pulls all the

Fwd: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
-- Forwarded message - From: Parul. Date: Wed, Jun 23, 2021, 11:34 PM Subject: Error while creating an ecommerce website :PLEASE HELP! To: Hi, I am working on an ecommerce website. I am facing an error. Can anyone please help me solve this error. I am not able to fetch the

Re: Partner

2021-06-23 Thread DJANGO DEVELOPER
Hi Erick! I am a python/Django developer and use it for many projects and I would love to have a meeting with you to discuss the projects. Regards: Muhammad Abubakar On Thu, Jun 24, 2021 at 4:12 AM Natalie Smyth wrote: > Dear Erick, > > My name is Natalie, I am a full stack web developer and I

Re: How to insert into multiple tables cascading

2021-06-23 Thread DJANGO DEVELOPER
https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/ read this official doc of django. all is written about modelformset and inlineformset_factory. On Thu, Jun 24, 2021 at 6:35 AM DJANGO DEVELOPER wrote: > have you tried to implement the inlineformset_factory function within your >

Re: Specifying a database connection for ManyToMany add()

2021-06-23 Thread Mike Dewhirst
On 23/06/2021 7:18 pm, Jayanth Shankar wrote: Hi, I am trying to add items to a ManyToMany relationship, but I would like to make the operation use a particular database connection, like one might do when calling save() on a model instance. However, looking at the source for

Re: How to insert into multiple tables cascading

2021-06-23 Thread David Crandell
Thank you my friend. I will give this a try. David L. Crandell 469-585-5009 g uitard...@outlook.com guitardave8...@gmail.com da...@onholdwizard.com On Wed, Jun 23, 2021 at 8:36 PM DJANGO DEVELOPER wrote: > have you tried to implement the inlineformset_factory function within your > views? if

Is the document not consistent for related_name?

2021-06-23 Thread ihc...@gmail.com
`%(model_name)s` is recommended in the document default_related_name but `%(class)s ` is recommended in the document Be careful with related_name and related_query_name

Re: How to insert into multiple tables cascading

2021-06-23 Thread DJANGO DEVELOPER
have you tried to implement the inlineformset_factory function within your views? if not then give a try to inlineformset_factory. because through inlineformset_factory you can populate data of different models through a single form. for now it looks a solution to me. On Wed, Jun 23, 2021 at

Re: Partner

2021-06-23 Thread Natalie Smyth
Dear Erick, My name is Natalie, I am a full stack web developer and I would love to work with you on some projects! I love the Django framework, have used it a lot, and am very familiar with DRF and using restful routes in general. Best, Natalie On Wed, Jun 23, 2021 at 11:18 AM ...@gmail.com

Re: Deploy Django app using cpanel

2021-06-23 Thread Eugene TUYIZERE
Dear Jolio, can you send me step by step to host to DigitalOcean? regards, On Wed, 23 Jun 2021 at 20:52, Julio Cojom wrote: > cPanel it's a pain to deploy python applications, better change to a vps > with digitalocean or something similar. > > > > El mié., 23 de junio de 2021 11:37 a. m.,

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi, I tried to pass the id..but its not working I observed while debugging, the try catch block is not getting implemented... i tried to put some print statements there..but they are not getting printed The print statements in models.py -- new_or_get func() are working On Thu, Jun 24, 2021 at

Re: Deploy Django app using cpanel

2021-06-23 Thread Julio Cojom
cPanel it's a pain to deploy python applications, better change to a vps with digitalocean or something similar. El mié., 23 de junio de 2021 11:37 a. m., Franck Tchouanga < ftchoua...@gmail.com> escribió: > I see. > > On Wed, Jun 23, 2021, 11:38 AM Eugene TUYIZERE > wrote: > >> Dear Franck,

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
First pass Id as an argument along with request to that particular view function On Thu, 24 Jun, 2021, 12:06 AM Parul., wrote: > Hi , > > I am doing : product_obj=Product.objects.get(id=product_id) > in the cart_update function in views.py > > but when trying to print this object...

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi , I am doing : product_obj=Product.objects.get(id=product_id) in the cart_update function in views.py but when trying to print this object... i am not getting anything... is this function is not working? On Wed, Jun 23, 2021 at 11:38 PM Aadil Rashid wrote: > Pass I'd to the

JavaScript

2021-06-23 Thread Tanni Seriki
I try to implement JavaScript on my Django project, but it's not working at all. In Mozilla Firefox it keep saying, File failed to load with It's not a valid mime type... Please help me out... Or is there any way I can use Django to make add to cart functionality. -- You received this

Re: Partner

2021-06-23 Thread Sri ram
Hello, I am interested and love to know more about this opportunity. On Wed, Jun 23, 2021 at 8:48 PM ericki...@gmail.com wrote: > hello guys am looking for any one good at Django and DRF i have couple of > personal projects which needs this tech spec am not good at them if any one > is

Re: Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Aadil Rashid
Pass I'd to the view you are you are using, And then get products thrid that I'd by simple ORM quriy Product = model name.objects.get(id=id) On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote: > Hi, > I am working on an ecommerce website. I am facing an error. Can anyone > please help me solve this

Error while creating an ecommerce website :PLEASE HELP!

2021-06-23 Thread Parul.
Hi, I am working on an ecommerce website. I am facing an error. Can anyone please help me solve this error. I am not able to fetch the PRODUCT_ID 1. views.py (APP-CART) --- from django.shortcuts

Re: Deploy Django app using cpanel

2021-06-23 Thread Franck Tchouanga
I see. On Wed, Jun 23, 2021, 11:38 AM Eugene TUYIZERE wrote: > Dear Franck, > > The problem I have now is to configure the django app in cpanel so that > users can browse it. As I said in previous email, I already have domain and > cpanel credentials. > > On Wed, 23 Jun 2021 at 12:17, Franck

Re: Deploy Django app using cpanel

2021-06-23 Thread Kelvin Sajere
I have a feeling the hosting company might have some input on how django is deployed on their shared Cpanel hosting, but in namecheap for instance, you would have to make sure you have imported the application in your wsgi, configured the media and static URLs and root to where you’d like them to

Re: kindly i need a help

2021-06-23 Thread Kelvin Sajere
I see three errors in your views and templates. First, the kvc variable in your view holds a list of all objects in your Aboutus table and all objects in your Services table, and I don’t think that’s what you want. If I understand what you want to achieve, then your view should look like this.

Re: Partner

2021-06-23 Thread Ogunsanya Opeyemi
Hi. I would like to join you. I have more experience in django On Wednesday, June 23, 2021, Arthur Obo Nwakaji wrote: > Hello, I am interested and love to know more about this opportunity. I am > well experienced in Django and DRF. > > On Wed, 23 Jun 2021, 4:19 PM ericki...@gmail.com wrote: >

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Can you write the class based function of the above views.py. I'm unable to do so. Will be of great help. On Wed, 23 Jun 2021 at 21:54, Shailesh Yadav wrote: > in Html code > > > {{items_filter.form}} > > Search > > > > Thanks & Regards > Shailesh Yadav > +91-9920886044 > > [image:

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Like this? class Product(ListView): model = Items.objects.all() paginate_by = 6 template_name = 'products.html' result_filter = ProductFilter(request.GET, queryset=model) On Wed, 23 Jun 2021 at 21:51, Shailesh Yadav wrote: > Okay. > If you using the Django filter then, please

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
in Html code {{items_filter.form}} Search Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] On Wed, Jun 23, 2021 at 9:50 PM Shailesh Yadav wrote: > Okay. > If you using the Django filter then, please try like below

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
Okay. If you using the Django filter then, please try like below in your views.. abc_list = ModelName.objects.all() result_filter = ModelNameFilter(request.GET, queryset=abc_list) Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin]

kindly i need a help

2021-06-23 Thread Richard Dushime
i am making a website using django and postgresql the when i made a migration and i created the tables then i i went in the admin (django administration ) everything was okay the user and the data i can add and manipulate all the data and get effect into the database but on my webpages i am

Re: Partner

2021-06-23 Thread Arthur Obo Nwakaji
Hello, I am interested and love to know more about this opportunity. I am well experienced in Django and DRF. On Wed, 23 Jun 2021, 4:19 PM ericki...@gmail.com hello guys am looking for any one good at Django and DRF i have couple of > personal projects which needs this tech spec am not good at

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Sorry, it's not working. I tried items_filter.form but it didn't work. Kindly check my views.py if that'll be of any help or require any changes. On Wed, 23 Jun 2021 at 15:02, Shailesh Yadav wrote: > Okay use below in html > {{yourmodelnameinsmall_filter.form}} > > Thanks & Regards > Shailesh

inspectdb errors: missing 1 required positional argument: 'collation'

2021-06-23 Thread Stephan van Beerschoten
I'm trying to recreate my models using inspectdb, but for some reason I'm now getting this output in my file: from django.db import models # Unable to inspect table 'AAA' # The error was: () missing 1 required positional argument: 'collation' # Unable to inspect table 'BBB' # The error was: ()

i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

2021-06-23 Thread vatsal narula
Using the URLconf defined in blogs.urls, Django tried these URL patterns, in this order: admin/ The current path, polls/, didn’t match any of these. this is the error i am getting after i wrote the following code: 1. for urls.py from django.contrib import admin from django.urls

Specifying a database connection for ManyToMany add()

2021-06-23 Thread Jayanth Shankar
Hi, I am trying to add items to a ManyToMany relationship, but I would like to make the operation use a particular database connection, like one might do when calling save() on a model instance. However, looking at the source for ManyToMany.add(), the function defaults to checking the

Partner

2021-06-23 Thread ericki...@gmail.com
hello guys am looking for any one good at Django and DRF i have couple of personal projects which needs this tech spec am not good at them if any one is interested plz i will be grateful -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to insert into multiple tables cascading

2021-06-23 Thread David Crandell
Sorry customer is inherited from these types class BaseInfo(models.Model): contact1_first_name = models.CharField(help_text='Primary Contact First name', max_length=50, default=None) contact1_last_name = models.CharField(help_text='Primary Contact Last name', max_length=50, default=None)

Re: How to insert into multiple tables cascading

2021-06-23 Thread David Crandell
Thank you for your reply. here are my models. Forms below. MODELS class Customers(Prospects): cust_id = models.IntegerField(default=0) vertical_cat = models.IntegerField(default=0) custom_cat = models.IntegerField(default=0) logo = models.ImageField(default='default.png',

Admin Site Permissions issue with one particular model

2021-06-23 Thread Jimmy Gawain
This is in reference to an issue with the Django admin site in Django v2.2. I have admin set up for two models: Group and GroupMember. GroupMember works fine. When I try to go to the change page for a Group object in my staff admin area I get a permission error: *You are authenticated as

Re: Deploy Django app using cpanel

2021-06-23 Thread Eugene TUYIZERE
Dear Franck, The problem I have now is to configure the django app in cpanel so that users can browse it. As I said in previous email, I already have domain and cpanel credentials. On Wed, 23 Jun 2021 at 12:17, Franck Tchouanga wrote: > Hello I can assist you what is the problem. > > > On Wed,

Re: Deploy Django app using cpanel

2021-06-23 Thread Franck Tchouanga
Hello I can assist you what is the problem. On Wed, Jun 23, 2021 at 9:54 AM Eugene TUYIZERE wrote: > please assist > > On Tue, 22 Jun 2021 at 13:03, Eugene TUYIZERE > wrote: > >> Dear Team, >> >> I have an issue. I want to make my app productive. I bought a domain and >> I got cpanel

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Okay, will try and let you know. Thank you for your response. On Wed, 23 Jun, 2021, 3:02 pm Shailesh Yadav, wrote: > Okay use below in html > {{yourmodelnameinsmall_filter.form}} > > Thanks & Regards > Shailesh Yadav > +91-9920886044 > > [image: Linkedin]

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
Okay use below in html {{yourmodelnameinsmall_filter.form}} Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] On Wed, Jun 23, 2021 at 2:58 PM Aritra Ray wrote: > This isn't working. When we are supplying a filter, the

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
This isn't working. When we are supplying a filter, the html is displaying all the products irrespective of the requested. On Wed, 23 Jun, 2021, 2:57 pm Shailesh Yadav, wrote: > Can you help with what ERROR you are getting? > > Thanks & Regards > Shailesh Yadav > +91-9920886044 > > [image:

Re: Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Shailesh Yadav
Can you help with what ERROR you are getting? Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] On Wed, Jun 23, 2021 at 2:25 PM Aritra Ray wrote: > Hi, > I've been trying to introduce a filter system in my

Need urgent help with filter system (django-filter) in Django

2021-06-23 Thread Aritra Ray
Hi, I've been trying to introduce a filter system in my Django-ecommerce website and I've been struggling despite reading the documents, etc. I am using 'django-filter' and below are filters.py, models.py, views.py and the template. To check out the project, follow the github link:

Re: Deploy Django app using cpanel

2021-06-23 Thread Eugene TUYIZERE
please assist On Tue, 22 Jun 2021 at 13:03, Eugene TUYIZERE wrote: > Dear Team, > > I have an issue. I want to make my app productive. I bought a domain and I > got cpanel credentials. The problem I have now is that I do not know how I > can configure the app in cpanel so that users can start

Re: In need of urgent help regarding dynamic image display v

2021-06-23 Thread Aritra Ray
Thank you, it worked. On Fri, 18 Jun 2021 at 00:08, Ayush Bisht wrote: > I think there is 2 method which you can do to get the work done. ... > > *1 : first one* .. you can declare a property decorator which just return > the url of that image > > > class Banner(BaseModel): >

Manager.raw() in a class method

2021-06-23 Thread Daniel Sears
I have a SQL function that works when I run it directly from an SQL script and now I'm trying to run it with Manager.raw() in a model method. I wrote a model instance method that worked fine: def get_store_products_sql(self) -> list['Product']: return Product.objects.raw(

Re: Django Admin: object history not working

2021-06-23 Thread Christian Ledermann
See https://stackoverflow.com/questions/987669/tying-in-to-django-admins-model-history for a better explanation and alternatives On Tue, 22 Jun 2021 at 18:59, Ryan Kite wrote: > > Thanks for the clarification, I didn't realize it only applied to changes > administered directly from the Django