Giter Site home page Giter Site logo

Comments (14)

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

Screenshot 2024-05-10 at 21-01-18 OperationalError at _

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

Hi @rrahulsinghh3 ,
Are you testing the installation using the test database or a fresh database?

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

test database

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

"I am using a script for installation, and once the process of creating a user is completed and the server startup is finished, I visit the link. However, upon logging in, I encounter this error. Sometimes, even during the user creation process, I face this error."

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

Ho @rrahulsinghh3 ,
Sorry for the inconvenience caused.
We have updated the test database in the repo.
Please check with the latest commit and run the script again. This should fix the error.

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

Thank you, horilla installed successfully

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

Glad to hear that.
Can we close this issue then?

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

Yes and thank you for the support.

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

We are very glad to help you.
Do let us know if you face any issues with Horilla.

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

Hi can i use fresh database?

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

Hi @rrahulsinghh3 ,
Either you can delete the current test database from the project directory and run the migrate command to have a fresh new database or else you can change the database name inside the settings.py to a new name of you wish and proceed with the migrate command.
Once migrate command is done, create a Horilla admin user using the createhorillauser command.
Follow the steps in the docs below.

To create the horilla user:
python3 manage.py createhorillauser

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

Thank you, and if I need more help, I will connect with you. Your support is greatly appreciated.

from horilla.

horilla-opensource avatar horilla-opensource commented on June 20, 2024

Sure.
Do let us know when you have an issue.

With Regards,
Team Horilla

from horilla.

rrahulsinghh3 avatar rrahulsinghh3 commented on June 20, 2024

When a new user is created, they are automatically granted access to view the entire employee list in the employee section. Is there any way to restrict access to only their profile? Additionally, when I attempt to delete a user, I receive an error. Please advise.

error (Environment:

Request Method: POST
Request URL: http://192.168.0.163:8000/employee/employee-delete/4/?view=card

Django Version: 4.2.13
Python Version: 3.10.12
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'notifications',
'mathfilters',
'corsheaders',
'simple_history',
'django_filters',
'base',
'recruitment',
'employee',
'leave',
'pms',
'onboarding',
'asset',
'attendance',
'payroll',
'widget_tweaks',
'django_apscheduler',
'horilla_audit',
'horilla_widgets',
'horilla_crumbs',
'horilla_documents',
'haystack',
'helpdesk',
'offboarding']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'corsheaders.middleware.CorsMiddleware',
'simple_history.middleware.HistoryRequestMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'base.middleware.CompanyMiddleware',
'base.thread_local_middleware.ThreadLocalMiddleware']

Traceback (most recent call last):
File "/home/itadmin/Downloads/horilla/horilla/decorators.py", line 191, in wrapped_view
func = view_func(request, args, *kwargs)
File "/home/itadmin/Downloads/horilla/horilla/decorators.py", line 40, in _function
return function(request, args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/http.py", line 43, in inner
return func(request, args, *kwargs)
File "/home/itadmin/Downloads/horilla/employee/views.py", line 1906, in employee_delete
if Contract.objects.get(employee_id=obj_id) is not None:
File "/usr/local/lib/python3.10/dist-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 637, in get
raise self.model.DoesNotExist(

During handling of the above exception (Contract matching query does not exist.), another exception occurred:
File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, callback_args, *callback_kwargs)
File "/home/itadmin/Downloads/horilla/horilla/decorators.py", line 196, in wrapped_view
return view_func(request, args, *kwargs)
File "/home/itadmin/Downloads/horilla/horilla/decorators.py", line 40, in _function
return function(request, args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/django/views/decorators/http.py", line 43, in inner
return func(request, args, *kwargs)
File "/home/itadmin/Downloads/horilla/employee/views.py", line 1906, in employee_delete
if Contract.objects.get(employee_id=obj_id) is not None:
File "/usr/local/lib/python3.10/dist-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/django/db/models/query.py", line 637, in get
raise self.model.DoesNotExist(

Exception Type: DoesNotExist at /employee/employee-delete/4/
Exception Value: Contract matching query does not exist.)

from horilla.

Related Issues (20)

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.