Comments (14)
from horilla.
Hi @rrahulsinghh3 ,
Are you testing the installation using the test database or a fresh database?
With Regards,
Team Horilla
from horilla.
test database
from horilla.
"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.
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.
Thank you, horilla installed successfully
from horilla.
Glad to hear that.
Can we close this issue then?
With Regards,
Team Horilla
from horilla.
Yes and thank you for the support.
from horilla.
We are very glad to help you.
Do let us know if you face any issues with Horilla.
With Regards,
Team Horilla
from horilla.
Hi can i use fresh database?
from horilla.
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.
Thank you, and if I need more help, I will connect with you. Your support is greatly appreciated.
from horilla.
Sure.
Do let us know when you have an issue.
With Regards,
Team Horilla
from horilla.
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)
- Some general security advise HOT 3
- Announcement - Character length issue HOT 3
- Whenever Add Indian Currenty Symbol ₹ that is not showing clearly while generate payslip HOT 6
- Just have the recruitment functionnality and modeling for this HOT 3
- Automatic sorting of resumes. shortlist HOT 2
- python manage.py makemigrations give error: ModuleNotFoundError: No module named 'environ' HOT 14
- Add meanings of the symbols in work records page HOT 1
- i am facing an error during an installation process at the second last commands, which are provided? HOT 9
- looking for "biometric device" on dashboard, but did not find, plz guide HOT 6
- "Based on" field missing from create allowance form HOT 3
- Migration Failed on employee_disciplinaryaction HOT 12
- S3 as media path - Not able to view HOT 1
- Need install on webserver using CPANEL HOT 6
- In Windows, Migration of tables fails with MySQL database HOT 14
- need to add hijri-persian calendar HOT 3
- Make migration postgresql. HOT 4
- Hi @Kushaldotel , HOT 4
- Payroll - Employee List not shown up in payroll form HOT 4
- Biometric Machine not connected with horilla HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horilla.