Page 1 of 1

Note of Instalation EDSCC (Underconstrution)

Posted: Tue May 09, 2023 12:16 am
by Kosmito
First we start cloning the repo with

Code: Select all

@backend:/home/edscc-ng# gh repo clone shuki25/edscc-ng
we need to install the dependency

Code: Select all

@backend:/home/edscc-ng# pip install django celery django-environ whitenoise channels django-jazzmin django-allauth django-crispy-forms django-celery_beat  djangorestframework django-cors-headers martor django-ajax-datatable chartjs django-debug-toolbar django-extensions django-redis filetype numpy markdownify jsonlines semantic-version pandas argon2 django[argon2] pyyaml uritemplate
one time finish this we can test if they are missing any modules using

Code: Select all

@backend:/home/edscc-ng# python3 manage.py 
if this is working and show all this commands is working right

Code: Select all

@backend:/home/edscc-ng# python3 manage.py

Type 'manage.py help <subcommand>' for help on a specific subcommand.

Available subcommands:

[account]
    account_unsetmultipleprimaryemails

[auth]
    changepassword
    createsuperuser

[authtoken]
    drf_create_token

[channels]
    runworker

[contenttypes]
    remove_stale_contenttypes

[debug_toolbar]
    debugsqlshell

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    sendtestemail
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    test
    testserver

[django_extensions]
    admin_generator
    clean_pyc
    clear_cache
    compile_pyc
    create_command
    create_jobs
    create_template_tags
    delete_squashed_migrations
    describe_form
    drop_test_database
    dumpscript
    export_emails
    find_template
    generate_password
    generate_secret_key
    graph_models
    list_model_info
    list_signals
    mail_debug
    managestate
    merge_model_instances
    notes
    pipchecker
    print_settings
    print_user_for_session
    raise_test_exception
    reset_db
    reset_schema
    runjob
    runjobs
    runprofileserver
    runscript
    runserver_plus
    set_default_site
    set_fake_emails
    set_fake_passwords
    shell_plus
    show_template_tags
    show_urls
    sqlcreate
    sqldiff
    sqldsn
    sync_s3
    syncdata
    unreferenced_files
    update_permissions
    validate_templates

[rest_framework]
    generateschema

[runserver_nostatic]
    runserver

[sessions]
    clearsessions

[staticfiles]
    collectstatic
    findstatic
now we are going to install the base of the DB using this

Code: Select all

@backend:/home/edscc-ng# python3 manage.py migrate
now using phpMyAdmin we are going to import the sql dump from this folder sql/edscc-initial-data.sql on the DB where we are going to install

this make a error on the import of the database i need investigate what happend

the command to start the server is

Code: Select all

@backend:/home/edscc-ng# python3 manage.py runserver
this also dont show nothing of the page the port is 8000