Skip to main content

Posts

Showing posts from June 18, 2020

3. Creating App in Django

1.  Before creating app you should be in virtual environment. I assume that you have already installed django in your virtual environment.  Command for working on virtual environment is, workon test (test is name of virtual environment) 2.  For creating app just type a command     django-admin startapp hospital 3. Now you can see that new folder is created in your django folder with name 'hospital'. 4. and in this way your new app is  created. 5. The new app created have following files, 6. In this folder we will develop our hospital management system. 7. Now to know django that you have created app, you must do some changes in settings.py file. for that just go in installed app in settings.py file 8. and there just add your app name like following,