web-applications

Django – redirect from one app to another app's page Django

Django – redirect from one app to another app's page Django Question: I have two apps called shop and subapp_gallery . Basically, subapp_gallery contains photo albums.. In my shop app I have my homepage for the website. so how can I redirect from link in a homepage[links to each albums] to subapp_gallery’s albums path.both apps …

Total answers: 3

Trouble running a Python script through VB

Trouble running a Python script through VB Question: The objective is to receive an image path and pass that to a Python program as an argument, then receive the results. This is done through a web app using VB (on the IIS server) and it works perfectly except when I import the python module OpenCV …

Total answers: 1

Virtual Environment for Python Django

Virtual Environment for Python Django Question: I’m currently a novice in web programming. I’ve been working on this Django project lately, and I’ve been reading about virtual environments. At the start of my project, I was unable to set up a virtual environment, and so I proceeded with the project without it. My questions are …

Total answers: 6

How to use visual studio code to debug django

How to use visual studio code to debug django Question: I’m new at django development and come from desktop/mobile app development with Xcode and related IDE. I have to use Django and I was wondering if there was an efficient way to debug it using Visual Studio Code (or Atom). Any help related to Django …

Total answers: 5

How to add comments feature to posts in a flask web application

How to add comments feature to posts in a flask web application Question: I am developing a web application with Flask.I am confused how to add comment feature to posts in a web application. Parts of my database models are a give below class Post(db.Model): id = db.Column(db.Integer, primary_key = True) title = db.Column(db.String(140)) body …

Total answers: 1

How to automatically reload Django when files change?

How to automatically reload Django when files change? Question: How to automatically monitor .py, .js and other source code files to restart a Django (or any other for that matter) application and refresh the browser when the source changes? This is possible in Rails using guard, in JS apps using grunt-contrib-watch and the accompanying livereload …

Total answers: 6

Minify HTML output from Flask application with Jinja2 templates

Minify HTML output from Flask application with Jinja2 templates Question: Is there a Flask or Jinja2 configuration flag / extension to automatically minify the HTML output after rendering the template? Asked By: Alexander || Source Answers: Have a look here https://github.com/cobrateam/django-htmlmin#using-the-html_minify-function I realise it is mainly used for django but the example shows how to …

Total answers: 8

Easiest way to tackle this web crawling task?

Easiest way to tackle this web crawling task? Question: I currently have been assigned to create a web crawler to automate some reporting tasks I do. This web crawler would have to login with my credentials, search specific things in different fields (some in respect to the the current date), download CSVs that contain the …

Total answers: 3

How to detect the country and city of a user accessing your site?

How to detect the country and city of a user accessing your site? Question: How can you detect the country of origin of the users accessing your site? I’m using Google Analytics on my site and can see that I have users coming from different regions of the world. But within my application I would …

Total answers: 4

Does Django scale?

Has Django served an excess of 100k daily visits? Question: I’m building a web application with Django. The reasons I chose Django were: I wanted to work with free/open-source tools. I like Python and feel it’s a long-term language, whereas regarding Ruby I wasn’t sure, and PHP seemed like a huge hassle to learn. I’m …

Total answers: 29