Categories and shoe Subcategories according to the parent category.

2020-05-18 Thread saqlain abbas
Hi, if i add Categories , for example 1)accessories 2)sports 3)books Subcategories: accessories is the parent category child categories are watches jewlry caps how can i show if user selects the parent category accessories then the subcategories show according to parent categories like

RE: How to resize image from Django ckeditor_uploader in the HTML template while rendering?

2020-05-18 Thread Vishesh Mangla
You can resize an image using the Pillow library or open-cv. Sent from Mail for Windows 10 From: Ali AhammadSent: 17 May 2020 22:45To: Django usersSubject: How to resize image from Django ckeditor_uploader in the HTML template while rendering? I am using Django ckeditor_uploader to make a post

Postgresql and mysql

2020-05-18 Thread Salima Begum
Hi , Mysql query which we used previously now we moved to postgresql, Here is the below query in mysql , Can anyone help me to write similar query in postgresql. query = "LOAD DATA LOCAL INFILE '41098_category_list.txt' INTO TABLE pages_rim_ls_categories FIELDS TERMINATED BY '|' LINES TERMINATED

RE: Re: how to write Ajax for a Like button in Django

2020-05-18 Thread Vishesh Mangla
Why don’t you use fetch api? Its simple. Once you get the response from the server, you can use InsertAdjacentHtml.  Sent from Mail for Windows 10 From: Motaz HejazeSent: 18 May 2020 07:34To: Django usersSubject: Re: how to write Ajax for a Like button in Django The button is submitted but without

Re: how to write Ajax for a Like button in Django

2020-05-18 Thread Ahmed Khairy
Hi Motaz, I tried it again now but when I press it there is no change. The likes count is the same and the like button doesnt change to dislike On Sunday, May 17, 2020 at 10:05:12 PM UTC-4, Motaz Hejaze wrote: > > The button is submitted but without page refresh > > On Mon, 18 May 2020, 3:53 am

RE: Re: How to resize image from Django ckeditor_uploader in the HTML template while rendering?

2020-05-18 Thread Vishesh Mangla
Sorry, I’ m just a beginner in Django but I think what you need to look at is the “Fetch API”. https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API.  https://www.youtube.com/watch?v=c3qWHnJJbSYYou can send an image through your view as HttpResponse(image_object in bytes/base64 format) object

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-18 Thread Jim Armstrong
When I work on client projects, I deploy to a test server that is under my control. Once the project is complete and they have paid the invoice, I deploy to the production server under their control. At that point, I don't care if they have access to the code - my contracts give the clients all

dealing with spam coming from scanning, script kiddies

2020-05-18 Thread f.holop
hi, i am fishing for some ideas how to prevent django from doing a "lot of drama" when some script kiddy is hitting it with a scan or other types of invalid requests like this: Subject: ERROR (EXTERNAL IP): Internal Server Error: / Internal Server Error: / ValueError at / A string literal

Re: Marketing django project

2020-05-18 Thread Fred XU
Hi, Do you need Chinese guys for this project? Fred 发自我的iPhone > 在 2020年5月18日,21:44,maninder singh Kumar 写道: > >  > Dear all, > > Require sales and marketing interns for django, javascript based artificial > intelligence project. > > regards > willy > +91 9910669700 > -- > You received

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
Hi Jorge, I tried placing a dot in front of settings_dev_sai, it didn't work. by the way, I am using Python 2.7 and Django 1.10 versions. [image: image.png] this is my project structure. I am using a virtual environment. Please let me know what you think sir On Sat, May 16, 2020 at 7:54 PM Jorge

Re: Incorrect query generated from ~Q/exclude

2020-05-18 Thread kirk
I struggled to find this in the Django ticketing system when I posted it, but I searched again this morning and found a few bugs that seem to be related. They were closed with comments indicating that https://code.djangoproject.com/ticket/10060 seems to be the root cause. Looks like this is

Re: How to resize image from Django ckeditor_uploader in the HTML template while rendering?

2020-05-18 Thread Ali Ahammad
thanx for your reply. i am using pillow in my profile app. but the main issue is with ckeditor_uploader as you know i have to use RichTextUploadingField(). besides it i have to mention in urls.py and i have to render it corresponding variable name in the template. my main goal was if i upload

Re: I am facing issues in sharing module.

2020-05-18 Thread Akshat Zala
I am facing issue in quering the database. I cannot write join query in django orm. On Sunday, 17 May 2020 18:04:47 UTC+5:30, Akshat Zala wrote: > > I wish to share the post with friends in django application. > > My project flow chart is as follows: > > > 1. User registers for an account. > 2.

Marketing django project

2020-05-18 Thread maninder singh Kumar
Dear all, Require sales and marketing interns for django, javascript based artificial intelligence project. regards willy +91 9910669700 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-18 Thread Sunday Iyanu Ajayi
I get your point but my solution is kind of a SaaS Application. the client wants to host it on his controlled server and if they get the source code, they can replicate, modify and maybe sell it. Is there a way to host the compiled file or lock the directory to the project. *AJAYI Sunday *

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
I tried that way, sir. but it's of no use. I don't know how to resolve this issue. its been troubling me for 3 days now On Mon, May 18, 2020 at 9:29 PM Mike Dewhirst wrote: > On 19/05/2020 11:10 am, chaitanya orakala wrote: > > I am using Python 2.7 > > It is possible you need a top line in the

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread Mike Dewhirst
On 19/05/2020 11:10 am, chaitanya orakala wrote: I am using Python 2.7 It is possible you need a top line in the file like this ... from __future__ import absolute_import I haven't been following this thread so someone may have mentioned that already. -- You received this message because

creating a utility script inside a django app; relative import woes

2020-05-18 Thread Jake Waxman
I'm a relatively new Django user. I'm running into a problem related to relative imports. I have a project and app set up the usual way mysite -- myapp __init__.py all the modules and templates in myapp including one that contains the definition of MyClass -- mysite __init__py

Getting HTTP 301 on static resources

2020-05-18 Thread jtaylor___
I'm setting up a Django instance running with gunicorn, behind Apache. Running on the server, the initial page comes up at http://server_host/dj/, but all the static resources give a Status Code "301 Moved Permanently". Here's an example URL:

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
hey could anyone help with this? On Mon, May 18, 2020 at 2:44 PM chaitanya orakala wrote: > Hi Jorge, > I tried placing a dot in front of settings_dev_sai, it didn't work. by the > way, I am using Python 2.7 and Django 1.10 versions. > [image: image.png] > this is my project structure. I am

Re: Django back button issue after log-out

2020-05-18 Thread Akshat Zala
In urls.py of the project directory: path('login/', auth_views.LoginView. as_view(template_name='users/login.html', redirect_authenticated_user=True), name='login'), On Monday, 17 December 2012 18:39:25 UTC+5:30, ke1g wrote: > > > > On Mon, Dec 17, 2012 at 5:14 AM, Ashish Sable > wrote: > >> >>

required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Anirudh choudhary
Hello everyone I am hosting my website on google cloud platform on Ubuntu VM instance. I cannot find a way to set the environment variable in the machine Like when I type on my local machine os.environ.get("SECRET_KEY") it give me the key but when I type the same command on VM instance it shows

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
You need to save in ~/.profile On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote: > > Hello everyone > > I am hosting my website on google cloud platform on Ubuntu VM instance. I > cannot find a way to set the environment variable in the machine > > Like when I type on my

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-18 Thread Akshat Zala
You can refer the link below: 1. https://cloud.google.com/community/tutorials/secrets-manager-python On Tuesday, 19 May 2020 10:26:17 UTC+5:30, Anirudh choudhary wrote: > > Hello everyone > > I am hosting my website on google cloud platform on Ubuntu VM instance. I > cannot find a way to set