Giter Club home page Giter Club logo

croma's Introduction

Croma

A Medical Software using Django


PR Open Source Love Open Source Love

Demo Video

Demo Video

Introduction

I have made this project for my dad's medical shop. This project is beneficial for the ones, who runs a chemist/pharmacy shop, where user can create the stock of items, create sale and purchase invoice and can generate various reports of the same.

Technologies used

  • Django/Python
  • Django Rest Framework
  • Javascript/Jquery
  • Css/Bootstrap3
  • PostgreSql

Perks of this application

  • 4 major sections of this application are Item Master(Inventory), Sales Invoice, Purchase Invoice, Reports.
  • This application is easy to use.
  • Shortcuts are keyboard powered. You can handle whole application without using mouse.
  • Navigation from one field to other can be done using Enter Key.
  • Supports wide variety of reports it can generate.
  • Printing the invoice via printer.

How to run the application

  1. Install the python(>=3.6)

  2. Clone the repository from https://github.com/jai-singhal/croma

  3. Unzip it, and cd to it to the project directory.

  4. create virtualenv by

    Install via pip pip install virtualenv

    For linux/mac

    $ virtualenv -p python3 .

    And then activate it by

    $ source venv/bin/activate

    For Windows

    $ virtualenv .

    And then activate it by

    $ .\Scripts\activate

  5. Install the dependencies by. Use pip for windows

    $ pip3 install -r requirements.txt

  6. Change the settings.py, set the path according to your wish. Also set the database default to dbsqlite from postgres.

  7. Run the server. Use python for windows

    $ python3 manage.py runserver

  8. Create superuser from command line.

  9. Navigate to http://127.0.0.1:8000 and then login with superuser credentials.

App Info

Author

Jai Singhal

Version

1.5.1

License

This project is licensed under the MIT License

croma's People

Contributors

dependabot[bot] avatar jai-singhal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

croma's Issues

Django Web Server is not opening

I want to use your pharmacy web-application but when I run this command
python3 manage.py runserver the blank command is showing instead of using this command I used this one python manage.py runserver I got these errors.

errors in code

Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init_.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init_.py", line 345, in execute
settings.INSTALLED_APPS
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init_.py", line 76, in getattr
self.setup(name)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init
.py", line 63, in setup
self.wrapped = Settings(settings_module)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\conf_init
.py", line 142, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\rd875\OneDrive\Documents\croma-master\src\croma\settings.py", line 6, in
import environ
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\environ.py", line 114
raise ValueError, "No frame marked with %s." % fname
^
SyntaxError: invalid syntax

C:\Users\rd875\OneDrive\Documents\croma-master\src>pip install sys
ERROR: Could not find a version that satisfies the requirement sys (from versions: none)
ERROR: No matching distribution found for sys

C:\Users\rd875\OneDrive\Documents\croma-master\src>pip install system
ERROR: Could not find a version that satisfies the requirement system (from versions: none)
ERROR: No matching distribution found for system

C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init
.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''

C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init
.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''

C:\Users\rd875\OneDrive\Documents\croma-master\src>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise exception[1]
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django_init
.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\apps\config.py", line 90, in create
module = import_module(entry)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in find_and_load
File "", line 973, in find_and_load_unlocked
ModuleNotFoundError: No module named 'compressor'
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 401, in execute_from_command_line
utility.execute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management_init
.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 60, in execute
super().execute(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\base.py", line 369, in execute
output = self.handle(*args, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 95, in handle
self.run(**options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\management\commands\runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 299, in run
self.run_loop()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 305, in run_loop
next(ticker)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 105, in iter_all_python_module_files
return iter_modules_and_files(modules, frozenset(_error_files))
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 1172, in resolve
s = self._flavour.resolve(self, strict=strict)
File "C:\Users\rd875\AppData\Local\Programs\Python\Python38-32\lib\pathlib.py", line 200, in resolve
return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: ''

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.