GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adding new Journey returns internal server error · Issue #219 · OpenSourceHelpCommunity/OpenSourceHelpCommunity.github.io

Adding new Journey returns internal server error #219

New issue
Copy link
New issue
Copy link
Open
Open
Adding new Journey returns internal server error#219
Copy link
Labels
Difficulty: EasyType: Bugfirst-timers-only

Description

@jarifibrahim
jarifibrahim
opened on Dec 28, 2017
Issue body actions

Steps to reproduce

  1. Pull latest pre-dev branch
  2. Run python manage.py migrate
  3. Login to admin console and try to add a new Journey.

Reason for failure - Server returns IntegrityError - NOT NULL constraint failed: main_journey.description

Explanation -
Take a look at 0002_journey.py file. The file represents a model which contains description field, while the actual model has no description field.

To fix the issue - Run python manage.py makemigrations and commit the new migration file.

Activity

  1. jarifibrahim
    added
    Difficulty: Easy
    first-timers-only
    Type: Bug
    on Dec 28, 2017
  2. tapaswenipathak commented on Dec 29, 2017

    @tapaswenipathak
    tapaswenipathak
    on Dec 29, 2017
    Member
    More actions

    description field needs to be removed from here 👍

    But
    it seems to be handled by heroku admin console and on the local too 👇, I tested this before and now. 🤔

    screen shot 2017-12-29 at 7 00 06 am

    screen shot 2017-12-29 at 7 05 43 am

    Can you share the steps to reproduce? I tried w/ both DEBUG set to True and False.

  3. jarifibrahim commented on Jan 5, 2018

    @jarifibrahim
    jarifibrahim
    on Jan 5, 2018
    MemberAuthor
    More actions

    @tapasweni-pathak I can confirm that it isn't working.
    Try the following steps

    1. delete the db.sqlite3 file
    2. run python manage.py migrate
    3. Try to add a journey via admin console.
    Reacted by Anubha Kushwaha
  4. tapaswenipathak commented on Jan 6, 2018

    @tapaswenipathak
    tapaswenipathak
    on Jan 6, 2018
    Member
    More actions

    @jarifibrahim I did it again and it is working for me,

    Adding screenshots so keep track and if anyone sees anything visible
    screen shot 2018-01-06 at 9 13 04 pm
    screen shot 2018-01-06 at 9 12 19 pm

  5. jarifibrahim commented on Jan 11, 2018

    @jarifibrahim
    jarifibrahim
    on Jan 11, 2018
    MemberAuthor
    More actions

    @tapasweni-pathak

    (venv) ➜  oshc git:(predev) python manage.py migrate
    Operations to perform:
      Apply all migrations: account, admin, auth, contenttypes, main, sessions, sites, socialaccount
    Running migrations:
      Applying contenttypes.0001_initial... OK
      Applying auth.0001_initial... OK
      Applying account.0001_initial... OK
      Applying account.0002_email_max_length... OK
      Applying admin.0001_initial... OK
      Applying admin.0002_logentry_remove_auto_add... OK
      Applying contenttypes.0002_remove_content_type_name... OK
      Applying auth.0002_alter_permission_name_max_length... OK
      Applying auth.0003_alter_user_email_max_length... OK
      Applying auth.0004_alter_user_username_opts... OK
      Applying auth.0005_alter_user_last_login_null... OK
      Applying auth.0006_require_contenttypes_0002... OK
      Applying auth.0007_alter_validators_add_error_messages... OK
      Applying auth.0008_alter_user_username_max_length... OK
      Applying main.0001_initial... OK
      Applying main.0002_journey... OK
      Applying sessions.0001_initial... OK
      Applying sites.0001_initial... OK
      Applying sites.0002_alter_domain_unique... OK
      Applying socialaccount.0001_initial... OK
      Applying socialaccount.0002_token_max_lengths... OK
      Applying socialaccount.0003_extra_data_default_dict... OK
    

    @tapasweni-pathak You have migration 0003 for main. Mirgration 0003_auto for main model isn't there on the predev branch

    (venv) ➜  main git:(predev) ls migrations                
    0001_initial.py  0002_journey.py  __init__.py  __pycache__
    
  6. tapaswenipathak commented on Jan 13, 2018

    @tapaswenipathak
    tapaswenipathak
    on Jan 13, 2018
    Member
    More actions

    gotcha 👍. What are your thoughts on Heroku not having this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: EasyType: Bugfirst-timers-only

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.