Anonymous
What exactly is the error?
Abhi
Rn I am able to run it Sir
When I add library of that schedule
In settings
INSTALLED APP
Abhi
Abhi
With Admin access
Abhi
It's error
DJANGO_SETTING_MODULE
Abhi
You must either define environment variables DJANGO_SETTING_MODULE or call settings.configure() before accessing settings
Abhi
Can anyone help?
Abhi
It's urgent
Abhi
I am beginer in Django
Abhi
Abhi
Abhi
Inside the djnago app there no settings.py exist but in this project they did that
Abhi
Tahts why I am unable to understand
Денис
environment error
You have two ways: either install django-scheduler via pip or include it as a Django app in your project and add it to INSTALLED_APPS in your settings.
I preferred the latter one because I needed to change something in the lib's code.
Abhi
I did with direct schedules
Abhi
But now need to know about hardcoding
Abhi
To update delete event
Abhi
Please it's urgent guide me now
Abhi
Sorry
Abhi
I didn't mean that
Abhi
😔
Abhi
Abhi
Yes
Abhi
Only you have to look into that my sources code directory
Abhi
And you will figure it out
Денис
Abhi
https://github.com/llazzaro/django-scheduler
Abhi
Can you tell me is test directory of this project is app or projects
Денис
Abhi
What was that
Денис
Abhi
Abhi
Yes
Денис
This one
A calendar app for Django
Денис
creating events and occurences
Денис
all that stuff
Abhi
This is popular livability to schedule events
Abhi
Check the code of inside test test_event.py
Денис
well documented and with a really working demo. Swingtime is a good starting point for you. Just read the demo code. and templates. Damn simple
Abhi
It's pure hardcode
Anonymous
I have no clue what Abhi wants
Anonymous
But that repo is an example
Денис
It's pure hardcode
What. Do. You. Want. From a Django testing module?
Please do a smart thing: google "django-scheduler working sample" or something. Dig into the code.
Nobody's gonna do this job for you. Otherwise you won't learn.
Abhi
I want to make three different methods
To
1. Createevent(date,time,):
Return event_id
2. Modifyevent(newdate,time,event_id):
Return eventid
3. Deleteevent(event_id)
Return status
With these available library I want to write function that will do these task
Денис
Abhi
I can do this but
Abhi
But I want to first setup that all file before I run
Abhi
My code
Anonymous
Did you install it?
Денис
Денис
pip install django-scheduler
Abhi
It's working
Abhi
As database logon
Abhi
But I want to do it with python script bro
Денис
But I want to do it with python script bro
https://github.com/llazzaro/django-scheduler-sample/blob/master/project_sample/management/commands/load_example_data.py
Pretty good enough sample for you to find out the methods for that. I'm done.
Abhi
When I am adding
'schedule'
'test'
'djangobower'
To my new project settings.py
INSTALLED_APPLICATION
and run server login to
https://localhost:8000/admin
And login I am getting django database admin UI to
create calendar
Delete calendar
Create event
Delete event
Modify event
Abhi
From webrowser
Abhi
Same thing I want to do with python script
With different methods by passing parameters
Денис
Abhi
Not other but can't we write code to do operating like that in same data base
Abhi
It's pure django work
Abhi
Only need to figure it out which method it supports do the task
Anonymous
Abhi
From where?
Денис
https://github.com/llazzaro/django-scheduler-sample/blob/master/project_sample/management/commands/load_example_data.py
Anonymous
Abhi
Yeah get it
Денис
Yeah get it
So you have two ways again.
Either you carefully dig into everything we gave you.
Or GTFO. You make me tired.
Abhi
Let me try to run all those code
And test that
Abhi
Thanks
Sunil
I want to create a website where user can view various reports n graphs
Can anyone suggest which plotting library should I use with django.
Mirco