nokkbl / khubkhao-recommender Goto Github PK
View Code? Open in Web Editor NEWLink to our demo project webpage:
Home Page: https://khubkhao-rec.herokuapp.com/
Link to our demo project webpage:
Home Page: https://khubkhao-rec.herokuapp.com/
User selected a food category and click "Submit".
It shows matching foods, but does not show which boxes
were checked.
Look at Amazon or Lazada.
After you select some criteria that filter the results,
the criteria selected are checked on the results page.
Vote one rating for many menus and the rate point should decrease but it increase instead.
You don't have default values for KKR_USER_DB, KKR_PWD_DB, etc,.
so even if the user has python-decouple on his machine, Django will
fail when config('KKR_USER_DB') is invoked.
I think there is a more clever way to use decouple.config() than what you are
doing. Look at the module docs page.
it maybe not necessary to do every step in order to run locally for now.
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/
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'
If you don't use these code, please delete them.
khubkhao-recommender/khubkhaoapp/tests.py
Lines 1 to 19 in 29ef474
khubkhao-recommender/khubkhaoRec/settings.py
Lines 148 to 149 in 2ee29d5
delete old STATICFILES_STORAGE.
After I voted specified menu(like Chinese food + noodles dish), page is go back to top 25 recommend menus. I want to vote another Chinese noodles, but I have to select food ethnic again.
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.
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?
Improve the web page to support the ordered food items.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.