Giter Club home page Giter Club logo

khubkhao-recommender's People

Contributors

driveiei avatar nokkbl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

khubkhao-recommender's Issues

Votings

Vote one rating for many menus and the rate point should decrease but it increase instead.

Installtion: undocumented dependencies on 'decouple' and 'django_heroku'

When I tried to install your app according to installation instructions I got this error:

ImportError: No module named 'decouple'

Looks like you are using decouple.config( ) to get some environment variable.

If you are going to use decouple, you could save users a lot of editing of
settings.py by providing separate .env files for local configuration and Heroku
configuration. You aren't using config() fluently for the database URL.
See example on https://henriquebastos.net/python-decouple-2-2-strict-separation-of-settings-from-code/

Error initializing database

I followed the instructions for installing your app locally
(after corrections for previous issues) but on the step:

python manage.py loaddata seed.json

it throws the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/core/serializers/python.py", line 100, in Deserializer
    data[Model._meta.pk.attname] = Model._meta.pk.to_python(d.get('pk'))
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/fields/__init__.py", line 945, in to_python
    params={'value': value},
django.core.exceptions.ValidationError: ["'cate1' value must be an integer."]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 353, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/loaddata.py", line 72, in handle
    self.loaddata(fixture_labels)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/loaddata.py", line 113, in loaddata
    self.load_label(fixture_label)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/loaddata.py", line 168, in load_label
    for obj in objects:
  File "/usr/local/lib/python3.5/dist-packages/django/core/serializers/json.py", line 69, in Deserializer
    yield from PythonDeserializer(objects, **options)
  File "/usr/local/lib/python3.5/dist-packages/django/core/serializers/python.py", line 102, in Deserializer
    raise base.DeserializationError.WithData(e, d['model'], d.get('pk'), None)
django.core.serializers.base.DeserializationError: Problem installing fixture '/home/projects/FoodRecommender/khubkhaoapp/fixtures/seed.json': ["'cate1' value must be an integer."]: (khubkhaoapp.category:pk=cate1) field_value was 'None'

Remove unused code

If you don't use these code, please delete them.

# from django.http import HttpRequest
# from django.test import TestCase
# from django.urls import reverse
# class IndexPageTest(TestCase):
# def test_home_page_status_code(self):
# response = self.client.get('/')
# self.assertEquals(response.status_code, 200)
# def test_view_uses_correct_template(self):
# response = self.client.get(reverse('index'))
# self.assertEquals(response.status_code, 200)
# self.assertTemplateUsed(response, 'khubkhaoapp/index.html')
# def test_home_page_contains_correct_html(self):
# response = self.client.get('/')
# self.assertContains(response, '')

Redirecting

After logged in, it should not be able to redirect user to login page by typing the url
(https://khubkhao-rec.herokuapp.com/login/)

Instead of using your logout button, users can use their back button to logout.
You can close this issue, if this is part of your design.

Why top 25 menus not all menus.

At first, when I logged in to homepage, it shows all menus.
After vote menu, it back to home page with top 25 menus. Should it be all menus?

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.