Categories
Mastering Development

Django separate settings and .env files (python-decouple): the specified path was not found for static files

I have developed a Django Project and try to manage different configuration (dev and prod) and .env using python-decouple. Below my project architecture and different config files. Maybe I misunderstand but in my comprehension : I have differents settings.py files (dev and prod) that inherit from my "base" settings.py Some variables must be kept secret: […]

Magento 2 – Can’t compile theme in production mode anymore | Unable to retrieve deployment version of static files from the file system

I get this error when trying to execute grunt refresh or grunt exec:all. [2020-08-17 05:25:31] report.CRITICAL: Can not load static content version. [] [] [2020-08-17 05:25:31] report.ERROR: Unable to retrieve deployment version of static files from the file system. #0 vendor/magento/framework/App/View/Deployment/Version.php(67): Magento\Framework\App\View\Deployment\Version->readValue(‘production’) #1 vendor/magento/module-theme/Model/Url/Plugin/Signature.php(87): Magento\Framework\App\View\Deployment\Version->getValue() #2 vendor/magento/module-theme/Model/Url/Plugin/Signature.php(65): Magento\Theme\Model\Url\Plugin\Signature->renderUrlSignature() #3 vendor/magento/framework/Interception/Interceptor.php(146): Magento\Theme\Model\Url\Plugin\Signature->afterGetBaseUrl(Object(Magento\Store\Model\Store\Interceptor), ‘https://relaunc…’, ‘static’, $ #4 […]

Categories
Mastering Development

I need to upload templates through django admin panel which contain index file along with static files

I am trying to make a portal where I take landing page template from different users and check manually that template is working file or not. If everything looks good then I want to upload that theme from my django admin panel which create a new folder for every template like in this case its […]

Categories
Mastering Development

bad request(400) django-postgresql page error in gcp

my application was successfully deployed to google cloud platform. when i run command glcoud app browse it shows a blank page with bad request(400). this is the details of the error. my app runs well locally. where is the problem coming from? is there any command for checking if everything is perfectly setup in my […]

Categories
Mastering Development

Syntax-Highlighting for Java-Code in html

What I am trying to do I am working on a syntax-highlighter that highlights java-code in html (example below). Example output I’ve tested the code with the following java-code (caesar-encryption): //Encryption public static String encrypt(String text, int n) { int x = 0; int y = 0; String out = ""; //Empty string for result. […]

Categories
Mastering Development

Page not found in django on post request when upload a file on cpanle (Shared hosting)

locally its working fine there is no error when i deploy django on cpanel(shared hosting) all things are working fine but when i submit the form without image it submitted successfully. if i choose an image and submit the form. will get page not found (404) error i tried to disable imageField from models.py and […]

Unable to log in to django admin

I know this question has been asked before, but either I don’t understand how to apply the solutions provided or they don’t work. I think my case may be much simpler. I am a beginner with Django and I’m following first the djangogirls tutorial. I installed Django in a virtual environment that I created with […]

Categories
Mastering Development

Error 401 while reloading Jwt secured spring Boot React app (and configuration problems)

I’m learning spring boot and react. I have successfully learnt how to use the frontend maven plugin to combine the two. Also JWT kind of works (at least an api call returns what I want while the token is alive and returns error when i set quick expiration time). But react routes work weirdly. I […]

AP not responding to DHCP requests

I want my wireless interface turned into AccessPoint to be able to assign an IP address to the client that attempts to connect to it. not much right? For making an interface AP, I’m using npm’s wireless-tools package. I suppose this is working fine, because I can see the access point created when searching for […]

Categories
User Help Web Pro

Using an icon in flask doesn’t work on heroku

I’m trying to add an icon to my website using: @app.route(‘/favicon.ico’) def favicon(): return url_for(‘static’, filename=’images/favicon.ico’) and when i’m using the “flask generated ip” hosted on my pc it works for all the pages, even the 404 pages, but when i host it on heroku it shows only on the ‘ / ‘ page. I […]