Thanks for your answer and advice.
BTW, I think the data set should be somewhere because the demo is based on
the data set. Maybe on the document author's computer. I just think
provided the data set with the document will be more helpful for Django new
users. So hope the author or others can
I feel I have to disagree, and the reason is the point of the tutorial is
to show you the basics with the various parts of django, and you're
creating a data set as you go along.
https://docs.djangoproject.com/en/2.1/intro/tutorial02/#playing-with-the-api
shows you how to use the ORM to create
students list is in database. I have to search based on section, department
and year and sort them in ascending order. can any one help me on this
through any video links or any other.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
Django ? Or ?
3 Şub 2019 Paz, saat 16:59 tarihinde Mohan Goud
şunu yazdı:
>
>
> students list is in database. I have to search based on section,
> department and year and sort them in ascending order. can any one help me
> on this through any video links or any other.
>
> --
> You received this
django
On Sun, Feb 3, 2019 at 7:30 PM Birol Demirtaş
wrote:
> Django ? Or ?
>
> 3 Şub 2019 Paz, saat 16:59 tarihinde Mohan Goud
> şunu yazdı:
>
>>
>>
>> students list is in database. I have to search based on section,
>> department and year and sort them in ascending order. can any one help m
Wnat u want ask to database ?
Example
X = yourmodel.objects.all()
Context = {‘x’:x}
Return render (request,your.html,context)
3 Şub 2019 Paz, saat 17:02 tarihinde Mohan Goud
şunu yazdı:
> django
>
>
>
> On Sun, Feb 3, 2019 at 7:30 PM Birol Demirtaş
> wrote:
>
>> Django ? Or ?
>>
>> 3 Şub 20
Hi, copy and paste wouldn't actually make you understand Django. Try to
write the code yourself and you see how quickly your understanding grow.
On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige
wrote:
>
> Hi Django users,
>
> I started using Django recently.
> I am followi
Hi
You may use include in urls.py
urlpatterns = [
path('', views.club_home, name='club_home'),
path('/', include(club_home_urls, namespace='club_home')),
]
On Sat, Feb 2, 2019 at 8:20 PM GavinB841 wrote:
> *Hi all,*
>
> *I am having issues using arguments from a URL in another view, I
Student.objects.filter(section__iexact="a",
department=1,year=2019).order_by("name")
On Sun, 3 Feb, 2019, 7:32 PM Mohan Goud django
>
>
>
> On Sun, Feb 3, 2019 at 7:30 PM Birol Demirtaş
> wrote:
>
>> Django ? Or ?
>>
>> 3 Şub 2019 Paz, saat 16:59 tarihinde Mohan Goud <
>> kathi.mohang...@gmail.c
here the problem is, i can't give sectionname, dept and year directly. It
has to do it for all sections in the database. can u help me how to do this.
On Sun, Feb 3, 2019 at 7:41 PM Shashank Singh
wrote:
> Student.objects.filter(section__iexact="a",
> department=1,year=2019).order_by("name")
>
yes render response but i have to store the sorted version in some other
model by creating it dynamically.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django
I want to create a time tracker system to track the employee work time and
data save to mysql database.please tell me how to start.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it
Can you give an example.
On Sun, 3 Feb, 2019, 7:49 PM Mohan Goud here the problem is, i can't give sectionname, dept and year directly. It
> has to do it for all sections in the database. can u help me how to do this.
>
>
>
> On Sun, Feb 3, 2019 at 7:41 PM Shashank Singh <
> shashank.singh10...@g
Go through the django tutorials, and kindly start a thread when you have a
problem.
On Sun, 3 Feb, 2019, 7:56 PM Rupam Hazra I want to create a time tracker system to track the employee work time and
> data save to mysql database.please tell me how to start.
>
> --
> You received this message bec
Yes, it is not supposed to be a copy paste demo. You're supposed to work
along the tutorial, use the shell, and not throw in a bunch of files and
opening the browser to see if it works
On Sun, 3 Feb, 2019, 7:20 PM Jason I feel I have to disagree, and the reason is the point of the tutorial is
> t
I have created such a system - it is extremely basic, but it covers my
needs. Feel free to take a look:
https://github.com/joakim-hove/ptime
Den søn. 3. feb. 2019, 15:26 skrev Rupam Hazra I want to create a time tracker system to track the employee work time and
> data save to mysql database.ple
Hi Nitin,
Thank you for your comment.
I did
jango-admin startproject mysite
and cd mysite, then
python manage.py runserver
and server is working, so I did
opython manage.py startapp polls
polls app was successfully created, and stopped the server because I wanted
to user postgresql inste
On Sunday, February 3, 2019 at 10:22:56 AM UTC-5, Atsunori Kaneshige wrote:
>
> Hi Nitin,
>
> Thank you for your comment.
>
> I did
>
> jango-admin startproject mysite
>
> and cd mysite, then
>
> python manage.py runserver
>
> and server is working, so I did
>
> opython manage.py startapp polls
Hi All ,
I have created certain python scripts to analyze log files and
suggest solution based on logic which I invoke on the command line . I need
some information on how to execute these through browser . I am using :
python test.py file1 file2
How do I use the browser to upload the
Sorry for I just list the section but did not emphasize the relative topic:
DB relative operation.
在 2019年2月3日星期日 UTC+8下午9:50:18,Jason写道:
>
> I feel I have to disagree, and the reason is the point of the tutorial is
> to show you the basics with the various parts of django, and you're
> creati
Hi Carsten,
Sorry, are you talking about Writing Your First App, Part2? The page below?
https://docs.djangoproject.com/en/2.1/intro/tutorial02/
Yeah, when I tried this, there was something wrong.
*I did that again. I copied and pasted my terminal below.*
*seems like migration was successful when
I'm not sure what you mean? if you're referring to the way querysets and
the ORM operate, there's a thorough section in the docs. but if you're
asking how to model data and use a db, that's out of the scope of django as
a whole.
--
You received this message because you are subscribed to the
*Here is the codes about choice*
In [27]: q = Question.objects.get(pk=1)
In [28]: q.choice_set.all()
Out[28]:
In [29]: q.choice_set.create(choice_text='Not much',votes=0)
Out[29]:
In [30]: q.choice_set.create(choice_text='The sky',votes=0)
Out[30]:
In [31]: c = q.choice_set.create(c
A space sneaked in in the github address:
https://github.com/joakim-hove/ptime
Den søn. 3. feb. 2019, 15:50 skrev Joakim Hove I have created such a system - it is extremely basic, but it covers my
> needs. Feel free to take a look:
>
> https://github.com/joakim-hove/ptime
>
> Den søn. 3. feb. 20
You have to add Choices for each questions you have created in database
like the process is same as you used for the questions.
On Sun, Feb 3, 2019, 8:53 PM Atsunori Kaneshige Hi Nitin,
>
> Thank you for your comment.
>
> I did
>
> jango-admin startproject mysite
>
> and cd mysite, then
>
> python
Hi,
Is there any easy way in Django to catch end user's local time when end
user access the webpage?
I have read django documentation and tried to google solutions, but I get
quite confused. Below you will find my code. In short the code should show
a story on my webpage what happened in the past
Plz can you share the all data about this site and source code
On Mon., 4 Feb. 2019, 12:00 am Mikko Meronen Hi,
>
> Is there any easy way in Django to catch end user's local time when end
> user access the webpage?
>
> I have read django documentation and tried to google solutions, but I get
> qu
Well, you're adding choices to q = Question.objects.get(pk=1).
But is this also the question you call the view with?
I suggest you add a few more print statements below your existing
print(question)
For example:
print(question.pk)
print(question.choice_set.all())
# Or, a bit mo
Hi Nitin,
Thank you!
I finally understood what you said.
Now working fine. Actually it was working, but I did not understand.
Thank you!
Nori
On Sunday, February 3, 2019 at 11:08:34 AM UTC-5, Nitin Kalmaste wrote:
>
> You have to add Choices for each questions you have created in database
> li
Hi Carsten,
Thank you!
I finally understood what's happening.
I should have added choices into each question.
Now, choice_set.all thing is working!
Thank you for your advice!
Nori
On Sunday, February 3, 2019 at 3:20:39 PM UTC-5, Carsten Fuchs wrote:
>
> Well, you're adding choices to q = Questi
Hi Simon,
Thanks for your response.
include_html was what I needed and the stack trace in mail contained the
variable dump.
Thanks a lot.
On Friday, February 1, 2019 at 10:15:53 PM UTC+5:30, Simon Charette wrote:
>
> Hello there,
>
> I haven't tried it myself but you could try subclassing
>
31 matches
Mail list logo