Page not found with POST request in the django's admin when i click any of the save button in Production environment - mysql

At first, I tried installing MySQLclient via the terminal in a shared hosting platform only to get GCC permission denied, I contacted the admin pertaining the domain but to no assistance. I decided to use SQLite instead, everything worked fine, to my surprise no migrations were requested. Now when I wanted to add a product in the django admin page, when I click the save button I get an error that page not found with request Post. Everything works fine in development also when i request the same page while online in the admins page it loads fine. Kindly help
Here is the gcc permission denied
Got this error when i tried pip install mysqlclient in cpanel terminal
Here is the the product page at the admin
This is the product page while at the admin page
Here is the error when i click any of the save buttons
This the error i get when i try to save the product by clicking any of the save buttons

I escaped gcc permission denied by installing django 2.1 and followed this Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?' worked for me but now the problem is when i add a product with an imagefield i get page not found with request post

Related

Problem with paypal module installation on prestashop

When trying to install PayPal, the following message appears (screenshot attached). Please help quickly. Thank you very much in advance.
I would like to add that I am able to install and configure other modules normally.
When trying to update the modules, including the PayPal module, there was some error. I decided to re-install the PayPal module but encountered a problem that the files could only be up to 2M. I eventually fixed this by changing the limits in the php.ini file. After that, I was able to upload all the modules except for PayPal. PayPal was giving empty errors. I tried some things and finally, it started giving the error that is on the screenshot.And also worth mentioning that for a moment I replaced the paypal folder in modules with the one I downloaded in the zip file of the paypal module but I reverted that change.

google cloud console - phpmyadmin 404 not found

Trying to create a new instance for running a php web app. But never installed a new server before. So I have followed all the instructions from the link below but when I go to http://[my ip addess]/phpmyadmin
I get a 404 error.
https://cloud.google.com/community/tutorials/setting-up-lamp?_ga=2.212307860.-1468980495.1579877933
As per the Ubuntu Help Community, if you're getting a 404 error upon visiting http://localhost/phpmyadmin, you will need to configure apache2.conf to work with Phpmyadmin.
Try the following command:
$ gksudo gedit /etc/apache2/apache2.conf
Include the following line at the bottom of the file, save and quit.
$ Include /etc/phpmyadmin/apache.conf
Greetings!

What server URL should be used for the `oc login` command when using OpenShift's PaaS?

What do I provide for the server URL in the oc login tool, when using the OpenShift PaaS?
I'm trying to migrate my OpenShift Online v2 app to v3, following the instructions for PHP apps linked to from OpenShift's Migration Center. That page says to run something following the pattern oc new-app https://github.com/<github-id>/<repo-name>.git --name=<app-name> -e <ENV_VAR_NAME>=<env_var_value>. After tracking down a download for oc (which wasn't easy), I tried running that command with my repo URL*; this results in:
$ oc new-app https://USERNAME#bitbucket.org/USERNAME/PROJECTNAME.git --name=PROJECTNAME
error: Missing or incomplete configuration info. Please login or point to an existing, complete config file:
1. Via the command-line flag --config
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
To view or setup config directly use the 'config' command.
Not knowing what subcommand of oc config to use, I searched and found Get Started with the CLI, which says to use oc login to start the configuration process. But when I run that, I get:
Server [https://localhost:8443]:
What do I provide for the URL here, when using the OpenShift PaaS (i.e. not a local installation)? I've tried things like https://openshift.com/ and the URL of my web app, but both of them result in
error: The server was unable to respond - verify you have provided the correct host and port and that the server is currently running.
* I decided to use Bitbucket instead of GitHub; I'm not sure if this is unsupported, or (if it's supported) whether I should be providing USERNAME#bitbucket.org.
It is right over there in the web console.
Click on (?) help icon right beside your user name on top right corner. Select 'Command Line Tool' from the drop down menu.
Alternatively, it is there in the URL :
http://<openshift url>/console/command-line
e.g. it is mentioned on the below URL for me:
https://console.starter-ca-central-1.openshift.com/console/command-line
Hope it helps.
In the RedHat OpenShift Online web console, click on the (?) help icon right beside your user name in the top right corner. Select 'Command Line Tools' from the drop down menu.
A pop-up window appears with a section "oc - OpenShift Command Line Interface (CLI)", and there's a link for Copy Login Command. Click that and it takes you to a page like
https://oauth-openshift.apps.ca-central-1.starter.openshift-online.com/oauth/token/display?code=Ge.....
(You may be prompted at this point to log into the Redhat Portal, do that if necessary.)
The page will then show the text
Display Token
Click Display Token
It will show output similar to this:
Log in with this token
oc login --token=... --server=https://api.ca-central-1.starter.openshift-online.com:6443
On the web console, click in your profile and then you can see "copy Login command" like this:
Then you just click on it and do it again on the button "Display token" in the new browser tab. Here is what your token looks like:
I just tried actually signing up for an OpenShift v3 Starter plan (which I hadn't done before because I didn't want to get ahead of myself, and the migration guide hadn't said to do so yet). That course of action did give me access to the "Command Line Tools" menu item under the ? menu, which gives the command line as oc login https://api.starter-us-east-1.openshift.com --token=<hidden>. (The hidden token is copied to the clipboard if you click the clipboard icon to the right of that line.)
I created an account for OpenShift v3 Starter plan.
Then I installed OC Tool available here.
I created a project called spike1 on US west.
Finally when running oc login and set Server URL to https://console.starter-us-west-1.openshift.com/
Hope this helps.
Once you create a project in public OpenShift. It redirect to my console
starter-us-west-1.openshift.com/console/
If you wana login to openshift using CLI.
command is
oc login https://console.starter-us-west-1.openshift.com

mdmsoft/yii2-admin module not working in basic templet

I am new with yii n am trying to include an admin module "mdmsoft/yii2-admin" in my app i have followed the readme instructions from https://github.com/mdmsoft/yii2-admin/tree/master/#rbac-manager-for-yii-2,there is no error in installation but when i try to open the admin page by mydomain/web.php/admin" its showing "Not Found". I have also checked the root permission of all the files and folders in the application and it is fine.
mydomain/web.php/admin should be mydomain/web/admin.

Xcode - Submission error - Unable to create configuration directory

I was trying to submit my second app update and it failed submission after passing validation. This is the error:
"Unable to create configuration directory:/Application/Xcode.app/Contents/iTMSTransportation.woa/.itmstransporter. Cannot save local copy of remote diagnostic configuration;local path is not writable".
My screen shot of the error cannot be attached. I know it is not a network error at Apple's end because it specified a path in the Application Loader in Xcode. Since the system has read and write permissions here, it cannot be because I changed something. I submitted another app successfully earlier on the same day without a problem (as usual). I am at my wits’ end. Anyone experienced this?
Since there is no “Build for Archiving” in Xcode 5 (like in Xcode), I started with following steps:
1 - From the Xcode Product menu I selected “Archive” item
2 - After the Build, the organizer window appeared in the foreground with my archive in it.
3 - I clicked the “Validate…” button and it executed that successfully.
4 - When I clicked the “Distribute…” button, it started uploading the app but failed and came back with the aforementioned error. I went to the folder to see if any folder in the directory path is locked and also to see who has read and write permissions. It is not me but the system. I did a Disk Permission Repair in Disk Utility but that didn't help.
I then removed the offending file “.itmstransporter.” and tried to submit but got a different error. I put it back and took out the other two (ITMSTransporter.cmd and WOBootstrap.jar” but produced a different error. So I restored the folder to its original contents and returned to where I started - stymied. I have considered installing a new version of Xcode 5.0 but I don't know if that will help.
My OS:Mountain Lion 10.8.5, Xcode 5.0, MacBook Retina (first retina in 2012). Project compiled for iOS 7 in the Build Settings.
Thanks for any pointers.

I had the same issue. I copied the whole "Application Loader" out of the XCode package to somewhere else and after that, uploading from the Application Loader worked fine.