ACACMS= aprova cateen and catering management system
============================================
in the terminal
============
erp@erp-Pegatron:~$ ls
deja-dup hs_err_pid19761.log NetBeansProjects
Desktop java revise -3.docx Pictures
Documents java revise -3.odt Public
Downloads jythonstuff tango_with_django_project
examples.desktop Music Templates
glassfish-4.0 myapp Videos
hrm MyEclipse
hrm.zip netbeans-8.0
erp@erp-Pegatron:~$ django-admin.py startproject acacms
erp@erp-Pegatron:~$ ls
acacms hrm.zip netbeans-8.0
deja-dup hs_err_pid19761.log NetBeansProjects
Desktop java revise -3.docx Pictures
Documents java revise -3.odt Public
Downloads jythonstuff tango_with_django_project
examples.desktop Music Templates
glassfish-4.0 myapp Videos
hrm MyEclipse
erp@erp-Pegatron:~$ cd acacms
erp@erp-Pegatron:~/acacms$ ls
acacms manage.py
============================================
in the terminal
============
erp@erp-Pegatron:~$ ls
deja-dup hs_err_pid19761.log NetBeansProjects
Desktop java revise -3.docx Pictures
Documents java revise -3.odt Public
Downloads jythonstuff tango_with_django_project
examples.desktop Music Templates
glassfish-4.0 myapp Videos
hrm MyEclipse
hrm.zip netbeans-8.0
erp@erp-Pegatron:~$ django-admin.py startproject acacms
erp@erp-Pegatron:~$ ls
acacms hrm.zip netbeans-8.0
deja-dup hs_err_pid19761.log NetBeansProjects
Desktop java revise -3.docx Pictures
Documents java revise -3.odt Public
Downloads jythonstuff tango_with_django_project
examples.desktop Music Templates
glassfish-4.0 myapp Videos
hrm MyEclipse
erp@erp-Pegatron:~$ cd acacms
erp@erp-Pegatron:~/acacms$ ls
acacms manage.py
in terminal
===========
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.
October 08, 2014 - 07:52:50
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
here this error is coming................... in red color ........... to avoid it ..................
so follow this steps to clear the error
erp@erp-Pegatron:~/acacms$ python manage.py migrate
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying sessions.0001_initial... OK
erp@erp-Pegatron:~/acacms$ ls
acacms db.sqlite3 manage.py
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
October 08, 2014 - 07:56:51
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
Note: open the link ie., http://127.0.0.1:8080/
in terminal
==========
erp@erp-Pegatron:~/acacms$ python manage.py syncdb
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
No migrations to apply.
You have installed Django's auth system, and don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'erp'): admin
Email address: admin@admin.com
Password:admin
Password (again):admin
Superuser created successfully.
Note: here the password and again password will come in hidden form.........
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
October 08, 2014 - 08:41:21
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
note: right click on the link ie., http://127.0.0.1:8080/
and understand the flow of accessing the django administration
===========
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.
October 08, 2014 - 07:52:50
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
here this error is coming................... in red color ........... to avoid it ..................
so follow this steps to clear the error
erp@erp-Pegatron:~/acacms$ python manage.py migrate
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying sessions.0001_initial... OK
erp@erp-Pegatron:~/acacms$ ls
acacms db.sqlite3 manage.py
Note:- after migrate you are getting db.sqlite3
Performing system checks...
System check identified no issues (0 silenced).
October 08, 2014 - 07:56:51
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
Note: open the link ie., http://127.0.0.1:8080/
in terminal
==========
erp@erp-Pegatron:~/acacms$ python manage.py syncdb
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
No migrations to apply.
You have installed Django's auth system, and don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'erp'): admin
Email address: admin@admin.com
Password:admin
Password (again):admin
Superuser created successfully.
Note: here the password and again password will come in hidden form.........
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
October 08, 2014 - 08:41:21
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
note: right click on the link ie., http://127.0.0.1:8080/
and understand the flow of accessing the django administration
Modules
=======
=======
- Canteen Order Management Module
- Restaurant Maintenance Module
- Catering Maintenance Module
- Customer Maintenance Module
- Order Maintenance Module
- Food Maintenance Module
before starting .......... this modules ......... let us use mvc model architectures.........
in the terminal
===========
erp@erp-Pegatron:~/acacms$ django-admin.py startapp com
erp@erp-Pegatron:~/acacms$ ls
acacms com db.sqlite3 manage.py
erp@erp-Pegatron:~/acacms$ cd com
erp@erp-Pegatron:~/acacms/com$ ls
admin.py __init__.py migrations models.py tests.py views.py
Note: here com stands for canteen order management
Note: here we will have mvt model architecture instead of mvc model in general
changing the db name to loginapp.sqlite3
open admin login
ie., http://127.0.0.1:8080/admin
the login page will come and login with username and password ........ if it is working find mean
the database change is done successfully
Now you need to define the path of your template directory in the settings.py file. To do this add the following line
into your TEMPLATE_DIRS directive.
Next you have to add your application name i.e. login into INSTALLED_APPS directive. To do this see the following code.
in the terminal
===========
erp@erp-Pegatron:~/acacms$ django-admin.py startapp com
erp@erp-Pegatron:~/acacms$ ls
acacms com db.sqlite3 manage.py
erp@erp-Pegatron:~/acacms$ cd com
erp@erp-Pegatron:~/acacms/com$ ls
admin.py __init__.py migrations models.py tests.py views.py
Note: here com stands for canteen order management
Note: here we will have mvt model architecture instead of mvc model in general
changing the db name to loginapp.sqlite3
and run in the terminal for the change... ie.,
erp@erp-Pegatron:~/acacms$ ls
acacms com loginapp.sqlite3 manage.py
erp@erp-Pegatron:~/acacms$ python manage.py syncdb
Operations to perform:
Apply all migrations: admin, contenttypes, auth, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying sessions.0001_initial... OK
You have installed Django's auth system, and don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'erp'): admin
Email address: admin@gmail.com
Password: admin
Password (again): admin
Superuser created successfully.
Note: know the change should check
erp@erp-Pegatron:~/acacms$ python manage.py runserver 8080
Performing system checks...
System check identified no issues (0 silenced).
October 08, 2014 - 09:57:19
Django version 1.7, using settings 'acacms.settings'
Starting development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
ie., http://127.0.0.1:8080/admin
the login page will come and login with username and password ........ if it is working find mean
the database change is done successfully
Now you need to define the path of your template directory in the settings.py file. To do this add the following line
into your TEMPLATE_DIRS directive.
1
2
3
4
5
6
| TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. os.path.join(os.path.dirname(__file__), 'templates' ), ) |
1
2
3
4
5
6
7
8
9
10
11
12
13
| INSTALLED_APPS = ( 'django.contrib.auth' , 'django.contrib.contenttypes' , 'django.contrib.sessions' , 'django.contrib.sites' , 'django.contrib.messages' , 'django.contrib.staticfiles' , # Uncomment the next line to enable the admin: # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'com' , )
here red one is added......... just take care
ok
now we will see the urls.py file
to solve the page not found problem..... in next part ie., part 7
follow the login application
for creation of login for acacms http://letusknowdjango.blogspot.in/2014/09/how-to-create-login-application.html after that you will get the list in the terminal in the terminal ============ erp@erp-Pegatron:~$ ls acacms hrm.zip netbeans-8.0 deja-dup hs_err_pid19761.log NetBeansProjects Desktop java revise -3.docx Pictures Documents java revise -3.odt Public Downloads jythonstuff tango_with_django_project examples.desktop Music Templates glassfish-4.0 myapp Videos hrm MyEclipse erp@erp-Pegatron:~$ cd acacms erp@erp-Pegatron:~/acacms$ ls acacms employee loginapp.sqlite3 manage.py company login login.sqlite3 static erp@erp-Pegatron:~/acacms$ python manage.py migrate Operations to perform: Apply all migrations: admin, company, contenttypes, auth, sessions Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying company.0001_initial... OK Applying sessions.0001_initial... OK erp@erp-Pegatron:~/acacms$ ls acacms company employee login login.sqlite3 manage.py static erp@erp-Pegatron:~/acacms$ python manage.py syncdb Operations to perform: Apply all migrations: admin, company, contenttypes, auth, sessions Running migrations: No migrations to apply. You have installed Django's auth system, and don't have any superusers defined. Would you like to create one now? (yes/no): yes Username (leave blank to use 'erp'): admin Email address: admin@gmail.com Password: Password (again): Superuser created successfully. erp@erp-Pegatron:~/acacms$
|
No comments:
Post a Comment