Bhupesh-V / tutorialdb

A search 🔎 engine for programming/dev tutorials,
MIT License
124 stars 62 forks source link

highlight current page no. #62

Closed Bhupesh-V closed 4 years ago

Bhupesh-V commented 4 years ago

Describe the bug The current page is not highlighted when we search something.

Expected behavior The current page should be highlighted/grayed out so that the user doesn't forget the current page number.

Additional context Reading the documentation of bulma.io may help.

satya-vinay commented 4 years ago

@Bhupesh-V I would like to work on it.

perun-01 commented 4 years ago

Screenshot from 2019-10-16 22-28-11 I am having issues while installing the requirements. Also i had attached the screenshot of the same.

Animesh-Ghosh commented 4 years ago

You need to create a virtual environment using python3 as:

$ python3 -m venv venv # create venv
$ source venv/bin/activate # activate venv

Then install requirements:

$ pip install -r requirements.txt # install dependecies
perun-01 commented 4 years ago

thanks for helping Animesh-Ghosh

perun-01 commented 4 years ago

results are not showing after search (locally) so unable to see pagination

Animesh-Ghosh commented 4 years ago

You need to add a few tutorials first.

chrisshyi commented 4 years ago

I can take a shot at this as well

Edit:

I've added a few tutorials but the search engine isn't able to find them. Also, I've followed the installation instructions and all tests either failed or reported an error. The error message is the same for all tests reporting an error, "ValueError: Missing staticfiles manifest entry for 'app/tutorialdb.png". Whereas the failure message was an assertion error with the HTTP status code (404 != 200)

Bhupesh-V commented 4 years ago

The reason tutorials are not appearing in search results is because they are not published. You need to make a super user in django login with your credentials by going to /admin and then change their status to publish.

chrisshyi commented 4 years ago

The reason tutorials are not appearing in search results is because they are not published. You need to make a super user in django login with your credentials by going to /admin and then change their status to publish.

That solved it, thanks!

perun-01 commented 4 years ago

The reason tutorials are not appearing in search results is because they are not published. You need to make a super user in django login with your credentials by going to /admin and then change their status to publish.

That solved it, thanks!

hey chrisshyi, could u pls share how u solve it.

chrisshyi commented 4 years ago

The reason tutorials are not appearing in search results is because they are not published. You need to make a super user in django login with your credentials by going to /admin and then change their status to publish.

That solved it, thanks!

hey chrisshyi, could u pls share how u solve it.

Yeah sure. First, create a super user in Django by running python manage.py createsuperuser, then log into the admin site at 127.0.0.1/admin. From there, just click on the tutorials you've added and change their status to published