Sencha Touch 2 Development on a Linux Server - django

Main Question: Is it possible to do all development for a Sencha Touch 2 web app on a Linux server?
I have a Linux server already hosting/running a decent size Django web application for the company I work for and want to build a web app for use on iPads in the field (the web app would only have a small amount of functionality for field crews). Ideally, I would be able to do all the development for this web app on the linux server, and not on my personal Windows computer.
I can't find anything that shows how one would set up such a scenario. Do I put the SDK files in my Django project directory? Would they go in an app directory within my Django directory? How do I set up the apache server to manage the Sencha Touch app?
The Sencha "Getting Started" guide shows code for what looks like a Linux type shell (they say to change to the ST directory by doing cd ~/webroot/sencha-touch-2.0.00gpl/ <- that looks like Linux command line, no?)
Anyone have any guides, information, tutorials, tips about thi

Related

Can Windows Application Packaging be used to package a console web app?

I have a solution that creates two applications: an ASP.NET Core Web Console App (server) and a UWP app (client). Both installers are created using Windows Application Packaging Projects using sideloading. Building and testing the client and server apps are functioning as expected. Deploying (installing) the client and server apps on desktop PCs also seem to function as expected. However, when it comes to running the apps, only the client seems to be working as expected. When launching the server (console web app) it displays a console window then disappears immediately.
Since this is a console app, I opened a command prompt and changed directory to where this application is installed (C:\Program Files\WindowsApps\AppName). I attempted to run the console app from the command line and I got the message "Access Denied". Assuming this directory is locked down by the system, I decided to to test the console app functionality by copying the directory from C:\Program Files\WindowsApps to C:\Temp. I then changed directory to C:\Temp and attempted to run the program. It runs as expected. So there seems to be nothing wrong with my console web app other than it cannot run if installed in the WindowsApp location. I tried searching for information regarding using Windows Application Packaging to package console apps but I didn't have much luck. Would it help to add and app.manifest and set the "requestedExecutionLevel" to "requireAdministrator"? Should I use a different type of packaging for the console Web App?

Downloading and finally executing Flask to make it work or connecting to the web

It appears that the program is already installed in Pycharm. I even created a blog about how to do it with pictures.
Nonetheless, it has been a nightmare getting to execute and finally connect on the web.
What code am I missing, I did it all thru Pycharm.
Yes, in order to Install Flask to do web apps. You must pay Pycharm Pro. This is true if you have a windows laptop or desktop. I am not certain about other programs where you can do Python web apps for free. But I will research that.

Deploy Django project with MSSQL DB in Local Server

I am new in Django and this will be my very FIRST Times web deploying. So I am trying to deploy my project to the local server and My project stack is Django with MSSQL so obviously I will need Window.
I was read the documentation and I think I will need WSGI and As the documentation say to deploy with gunicron or uWSGI but both are supported for Unix and not for window. So How can I start this one? This will be the first question.
I would like to know whether I am doing is correct or not.
Now I copy my project to the local server and when I try to run my project like python manage.py runserver it asks me to install Django and other but I thought this environment is working at well my computer and all of the needed application is already installed in the environment. So I still need to install all of my needed apps like Django to this environment again?
If u have any tutorial or can guide me to some useful site, I will be very very appreciated.
Anything u want to know further, Just let me know.
Thanks.

Django Deployment on windows

I am learning python and Django now. I have a question related to deploying Django project on windows 7. I know how to start the test server in django and see the project. But I have to do start the server manually every time I restart the PC. Also I have to keep the terminal window open.
Consider the below scenario for php projects.
We copy and paste the php files in htdocs or www folder in apache server and access them using the respected url. Web Server is running in the background. We dont have to start the server on windows restart.
Is something similar possible with Django on apache or any other server?
If yes, how should I go about it?
Thanks in advance.
For anyone stumbling around for an answer to a similar problem with deploying Django on a Windows server, here is a guide
Deploy Django with Apache and mod_wsgi on Windows Server 2019
To have Apache24 service automatically run on startup, make the changes in Windows Services dialog.

Running Sencha Touch app on Java Eclipse & Android Emulator on Windows 8 (without phonegap)

I am getting trouble in running sencha touch 2 app on android emulator (without using cordova/phonegap) on windows 8 using .
Below is the list of packages installed on DEV machine:
1. JRE v1.7
2. Sencha Touch v2.4.1 SDK
3. Sencha SDK Tools 2.0.0 beta
4. Sencha Cmd 5.1.2
5. Ruby 2.0.0
6. Chrome (Browser)
7. Web Server - Both IIS 8 & XAMPP
8. Android SDK 23.0.6
9. Eclipse IDE (integrated with VJET Library & ExtJSTL 4.2)
10. Android ADT Manager (installed emulator snapshots targeting os2.2 & 5.1)
"MyApp" project runs perfectly on chrome browser when hosted on IIS 8 & XAMPP (apache). But not able to figure out steps to run the same on android emulator. So far followed below mentioned steps, leading to unsuccessful attempts:
sencha app build native [Command Successful]
sencha app build -run native [Command Successful]
sencha app build package [Command Successful]
Started emulator instance from eclipse (avd) and executed command sencha app build -run native, but the app doesn't execute on emulator instance.
Followed steps mentioned in post (http://www.sencha.com/forum/showthread.php?215210-how-to-run-sencha-touch-app-on-android-emulator-on-windows) but still facing issues.
Please help!!
do u want to run it as website for mobile?
as u are saying, you don't want to use cordoav/phonegap.
If u just want to run on Mobile Browser U can use Netbeans. It has a very simple feature to allow a html5 application to be run on Mobile browser
all U have to do is
1. Create HTML5 Project in netbeans
2. Run command "sencha app build native"
3. copy all files & folders form directory cordova->www which exist in your sencha app directory
4. Paste it into your HTML5 Project directory
5. Choose The Browser option in netbeans and run
Thanks Nitish for your suggestions. But this is not what my query was all about. I was trying to figure out a way of running sencha touch app on emulator without compiling it to native app following steps mentioned in post: http://www.sencha.com/forum/showthread.php?215210-how-to-run-sencha-touch-app-on-android-emulator-on-windows.
Anyways, to run sencha touch app on emulator I had to create native android app using cordova/phonegap wrapper. To run sencha touch app (which is mobile web portal equivalent), it is required to be wrapped inside native app (android, ios, etc) followed by app signing and APK / IPA file generation.