Re: Python

2023-08-31 Thread Brian Carey
It would be good to have a goal. What do you want to do? Website? Applications? 
Data Science? Machine Learning? The answer really depends on your purpose.

⁣Get BlueMail for Android ​

On Aug 31, 2023, 21:34, at 21:34, KHUSH DESAI  wrote:
>hey guys , I am a new to doing all of this as i just started coding .
>Can 
>you guys give me some advice about how to build a task manager 
>website/chrome add-on that can help me manage my time . I have learned
>HTML 
>CSS and in the mist of learning python and honestly i am lost on how to
>do 
>this 
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/ed367835-1cbd-4e73-91c0-757a5d96daedn%40googlegroups.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fbf6b162-73de-49b6-aef3-5b497d399bfe%40gmail.com.


Re: final project in django - help

2023-07-16 Thread Brian Carey
A little more information please. What can't you do and what errors do you get?

⁣Get BlueMail for Android ​

On Jul 16, 2023, 03:47, at 03:47, Alexandru - Gabriel Ionicescu 
 wrote:
>Hello,
>
>who can help me with the final project in django? in a week I have to
>hand
>it over and I got into trouble with it. I can't access github.
>Please help me.
>
>Tnx,
>Alex
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/CAKsnQnS6KtEXw_aDy3mUq1sywOHORC7Tv18%3D%3DxD9UthL-P7aCg%40mail.gmail.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com.


Re: Looking for a Learning Buddy

2023-06-16 Thread Brian Carey
Hi John. For ML and python you'd probably get more responses from the Pytorch 
community.

https://discuss.pytorch.org/

Good luck.

⁣Get BlueMail for Android ​

On Jun 16, 2023, 16:00, at 16:00, John Ayodele  wrote:
>Hi! It's John.
>
>I am currently looking for a learning buddy, for Machine Learning.
>I have little experience in Django and I code in Python.
>
>The learning buddy would have one-on-one meetings with me so we can
>share
>ideas and learn together.
>It is really going to be a fun experience.
>The reason I am looking for a learning buddy is because I find it more
>fun
>learning with people rather than just being self-taught alone.
>I will be going to university later this year or next year.
>
>If this sounds like you, please do not hesitate to contact me.
>
>
>Thanks.
>John Ayodele
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/CAP7pJ3gsn_bkOfP-8k-SNZ%2BmmJ8riuc1cdUVXzoQXN31BS4W4g%40mail.gmail.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f9290dd3-5b80-43f1-963f-c3912e2295d0%40gmail.com.


Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Brian Carey
If you want intellectual stimulation start with vanilla python or js. If you 
want to learn a framework. This is purely subjective. Either way I don't know 
how you'd do it without reading or a full-time tutor. If you find it too 
tiresome then maybe a little introspection is in order.

⁣Get BlueMail for Android ​

On Apr 26, 2023, 07:57, at 07:57, Julius Chesoni  
wrote:
>Hi guys, I find programming in the abstract very interesting and full
>of
>intellectual benefits similar to those acquired from Mathematics.
>However,
>when it comes to programming languages I find the practice of
>programming
>very tiresome since there are very many functions in the
>documentations. I
>am not able to enjoy reading the documentations even though I am eager
>to
>know how to master the particular language. How do you guys manage to
>be
>masters in languages like Django since I see some great people
>contributing
>to every question. This amazes me.
>
>Kind regards
>Julius
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/CANOu6a8axU1sL6GXveq7CufyTm1JWX-6aZ7FU4fJVqLq9M0GAQ%40mail.gmail.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c73d6eef-862e-4557-91c3-caa79b267edf%40gmail.com.


Re: Spies in California and America

2023-03-28 Thread Brian Carey
What the hell!? Don't spam the Django channel with your propaganda.

⁣Get BlueMail for Android ​

On Mar 28, 2023, 5:14 PM, at 5:14 PM, Michael Starr  
wrote:
>So does  anyone have an update on the police state and spying of
>Democrat 
>Ukrainians in America yet?
>
>Michael
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/3711c50c-4f8d-4bef-97d5-9b37d33049a0n%40googlegroups.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/018aafdc-6849-442f-bc03-16642bf94994%40gmail.com.


Re: Migration of tables from external database to new database

2023-03-21 Thread Brian Carey
mysqldump can be used to extract the table(s) from the old database. This 
creates a file with the SQL statements to recreate the table which can be read 
into into the new database with mysql command. As long as you are going from a 
MySQL DB to another this will work fine. If you are moving from one engine to 
another there are potential problems but not necessarily.

⁣Get BlueMail for Android ​

On Mar 21, 2023, 12:17 AM, at 12:17 AM, nef  wrote:
>Hi,
>My suggestion is to first create the apps using Django, then create the
>
>models respecting the database structure you are willing to migrate,
>run 
>the makemigrations, migrate which will create a new database with
>tables 
>having the same structure as those you want to migrate.
>After that, use the phpmyAdmin or what other tools you have to migrate
>your 
>data from the old database to the new database 
>I hope it helps.
>Thanks
>Nef
>On Monday, 20 March 2023 at 23:19:35 UTC+3 Adekola Aderonmu wrote:
>
>> Hi, my engine is mysql 
>> Yes, there is data in the table  I want to migrate into the new
>database.
>>
>> CUS THE DATABASE  I WANT TO MIGRATE TOO IS AN APP IN DJANGO
>>
>> On Mon, 20 Mar 2023, 20:20 nef,  wrote:
>>
>>> Hi Adekola,
>>> Can you provide more details?
>>> Which database engine are you using? Version? Is your table have
>data or 
>>> do you want to migrate the structure...?
>>> How this is related to Django?
>>> Thanks
>>>
>>> On Monday, 20 March 2023 at 08:12:20 UTC+1 Adekola Aderonmu wrote:
>>>
 Hi guys, 
 I have an external  database with a particular table, and I want
>this 
 table to be on my new database. How do I go about the  migration 
>of the 
 table from the external database into the new  database?

 THANK YOU

>>> -- 
>>> 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-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>>
>https://groups.google.com/d/msgid/django-users/4c726045-a3d5-4667-ad7e-1e732085f922n%40googlegroups.com
>
>>>
>
>>> .
>>>
>>
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/29e8f010-569e-43e5-8280-88005fc4863cn%40googlegroups.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c519057e-5bd5-4e23-b9d3-a4d3e48fe1ee%40gmail.com.


Re: sub-list not showing

2023-03-16 Thread Brian Carey

A quick glance: In your temple for loop you have 'student_set' in the 
conditional and  'students_set' in the loop. That doesn't seem right.

⁣Get BlueMail for Android ​

On Mar 16, 2023, 9:01 PM, at 9:01 PM, nef  wrote:
>Hi Daniel,
>Thanks for your feedback.
>Please, is there anyone  who can help me on how to do it?
>Thank you
>
>On Thursday, 16 March 2023 at 22:01:53 UTC+1 Namanya Daniel wrote:
>
>> You need to achieve related fields to achieve the most of this… thank
>you 
>>
>> On Thu, 16 Mar 2023 at 23:59, Namanya Daniel 
>wrote:
>>
>>> Hello… am using a phone to reply this but I would love to give a
>hint on 
>>> something. When you have a child, it’s means there’s a parent
>foreign key 
>>> in the child model. You can use grouper to group child model results
>so 
>>> that every is grouped together under a particular parent field. 
>>>
>>> On Thu, 16 Mar 2023 at 21:22, nef  wrote:
>>>
 Hi all,
 I am facing problem to display a sub-list.
 In my model, I ahave a Student and Parent models. A prent can have
>one 
 or more students.
 I want to list all the student in the parent page, but it is not 
 showing. 
 Please see here my code.
 Models

 class Student(models.Model):
 #std_matricule = models.CharField(verbose_name='Student
>matricule', 
 max_length=6, null=False, unique=True, primary_key=True)
 std_matricule = models.CharField(verbose_name='Matricule',
>unique=
 True, max_length=16, null=False, blank=False, help_text='Matricule
>of 
 the student')
 std_parents = models.ForeignKey(Parents,
>on_delete=models.DO_NOTHING, 
 related_name='Parents', unique=False, null=True, blank=True, 
 verbose_name='Student parents')
 std_email = models.EmailField(verbose_name='Email', null=False,
>
 blank=True, help_text='Enter the email of the student or leave
>blank if 
 not exist')
 std_password = models.CharField(verbose_name='Password',
>max_length=
 512, null=False, blank=True, help_text='Type the password with 6 
 characters minimum')
 std_surname = models.CharField(verbose_name='Surname',
>null=False, 
 blank=False, max_length=128, help_text='Type the Surname of the
>student 
 as in the birth certificate')
 std_firstname = models.CharField(verbose_name='First name',
>null=
 False, blank=True, max_length=128, help_text='Type the student
>first 
 name')
 std_midlename = models.CharField(verbose_name='Midle name',
>null=
 False, blank=True, max_length=128, help_text='Type the student
>first 
 name')
 std_nickname = models.CharField(verbose_name='Student
>Nickname', 
 max_length=64, null=False, blank=True, help_text='If exist, type 
 student nickname here')

 lass Parents(models.Model):
 father_surname = models.CharField(verbose_name='Father
>surname', 
 max_length=128, null=False, blank=True, help_text='Student Father 
 surname as in the birth certificate')
 father_firstName = models.CharField(verbose_name='Father name',
>
 max_length=128, null=False, blank=True)
 father_phone = models.CharField(verbose_name='Father phone
>number', 
 max_length=24, null=False, blank=True, help_text='Phone number of
>the 
 Father')
 father_dateOfBirth = models.DateField(verbose_name='Father date
>of 
 birth', null=True, blank=True)
 father_placeOfBirth = models.CharField(verbose_name='Father
>place 
 of birth', max_length=512, null=True, blank=True)
 father_nationality = models.CharField('Father nationality', 
 max_length=256, null=False, blank=True)
 father_adress = models.CharField(verbose_name='Father resident 
 adress', max_length=512, null=False, blank=True)   
 father_occupation = models.CharField(verbose_name='Father 
 occupation', max_length=512, null=False, blank=True)
 mother_surname = models.CharField(verbose_name='Mother
>surname', 
 null=False, max_length=128, help_text='Student Father name as in
>the 
 birth certificate')
 mother_firstName = models.CharField(verbose_name='Mother name',
>
 max_length=128, null=False, blank=True)
 mother_phone = models.CharField(verbose_name='Mother phone
>number', 
 max_length=64, null=False, blank=True, help_text='Phone number of
>the 
 mother')
 mother_dateOfBirth = models.DateField(verbose_name='Mother date
>of 
 birth', null=True, blank=True)
 mother_placeOfBirth = models.CharField(verbose_name='Mother
>place 
 of birth', max_length=512, null=False, blank=True)
 mother_nationality = models.CharField('Mother nationality', 
 max_length=512, null=False, blank=True)
 mother_adress = models.CharField(verbose_name='Mother resident 
 adress', max_length=512, null=False, blank=True)   
 mother_occupation = models.CharField(verbose_name='Mother 
 occupation', max_length=512, null=False, blank=True)

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Brian Carey
I think you need to check your urls.py.

⁣Get BlueMail for Android ​

On Mar 14, 2023, 1:33 PM, at 1:33 PM, Nithin Kumar  
wrote:
>question.id or question_id both gave the same result.
>These are the views. 
>
>from django.shortcuts import get_object_or_404, render
>from django.http import HttpResponse, Http404, HttpResponseRedirect
>from django.template import loader
>from .models import Choice,Question
>from django.urls import reverse
>
># Create your views here.
>
>def index(request):
>latest_question_list = Question.objects.order_by('-pub_date')[:5]
>template = loader.get_template('polls/index.html') 
>context = {
>'latest_question_list': latest_question_list,
>}
>return render(request, 'polls/index.html',context)
>
>
>def detail(request, question_id):
>try:
>question = Question.objects.get(pk=question_id)
>except Question.DoesNotExist:
>raise Http404("Question Does not exist")
>return render(request, 'polls/detail.html', {'question':question})
>
>
>
>def results(request, question_id):
>question = get_object_or_404(Question, pk=question_id)
>   return render(request, 'polls/results.html', {'question': question})
>
>def vote(request, question_id):
>return HttpResponse("You're voting on question %s." % question_id)
>
>
>
>
>
>On Tuesday, March 14, 2023 at 1:22:25 PM UTC-4 Prosper Lekia wrote:
>
>> Let's see your views.
>>
>> On Tue, Mar 14, 2023, 14:32 Muhammad Juwaini Abdul Rahman <
>> juw...@gmail.com> wrote:
>>
>>> question_id=question.id
>>>
>>> On Tue, 14 Mar 2023 at 21:22, Nithin Kumar 
>wrote:
>>>
 Hi,

 Stuck with this problem 

 https://docs.djangoproject.com/en/4.1/intro/tutorial04/

 NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)'
>not 
 found. 1 pattern(s) tried: ['polls/>>>
 My detail.html is like this and it is failing at Line 1. 
 I checked all solutions online but no luck. 

 
 {% csrf_token %}
 
 {{ question.question_text }}
 {% if error_message %}{{ error_message }}
 {% endif %}
 {% for choice in question.choice_set.all %}
 
 {{ 
 choice.choice_text }}
 {% endfor %}
 
 
 

 -- 
 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-users...@googlegroups.com.
 To view this discussion on the web visit 

>https://groups.google.com/d/msgid/django-users/d6c40407-64a0-4418-ba9a-39db89b1c1dcn%40googlegroups.com
>

>
 .

>>> -- 
>>> 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-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>>
>https://groups.google.com/d/msgid/django-users/CAFKhtoQ1tfqUempakxY7DHy26utEt3QN1iBbLBM78r5neYM3QQ%40mail.gmail.com
>
>>>
>
>>> .
>>>
>>
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/1d230ed2-73f0-4609-b53b-e620dff5d302n%40googlegroups.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21c8dec2-8e46-4885-8522-6eae37dd9ed9%40gmail.com.