Re:Roles and Permissions in python Django

2023-04-01 Thread Daisi Caroline
Hello friends i am doing a django project and i am stack on roles and 
permissions.This is what i am supposed to do.

I am supposed to do the roles and permissions.
So I have done the roles but now permissions is the problem.
For example the organisation admin and the local admin when logged into the 
system they are supposed to see the dashboard.
Security personnel is supposed to only validate the invites.
Staff resident and Portal user are only supposed to create invites.
But in my case all of them when logged in are seeing the dashboard.

Anyone who can help in this please.we can connect.

Regards,
Daisi Caroline.

-- 
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/13ea8217-134d-4b6b-b7f9-1b79517748d3n%40googlegroups.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
I have a little update, but not a solution. Adding the database to 
sqlmigrate will give me the SQL command, but nothing more:

python3 manage.py sqlmigrate ObjPLW2 0037 --database=db_obj_plw2
--
-- Create model Wartungsarbeit
--
CREATE TABLE `ObjPLW2_wartungsarbeit` (`id` integer AUTO_INCREMENT NOT NULL 
PRIMARY KEY, `wa_titel` varchar(201) NOT NULL, `wa_beschreibung` longtext 
NOT NULL, `wa_turnus` integer UNSIGNED NOT NULL CHECK (`wa_turnus` >= 0), 
`wa_startdatum` date NOT NULL, `wa_erstelldatum` datetime(6) NOT NULL, 
`wa_bearbeitungsdatum` datetime(6) NOT NULL);
--
-- Alter field w_bezahlt on waeschepaket
--

And for whatever reason it includes only the table creation and not the 
change in the other field.
On Saturday, April 1, 2023 at 7:46:51 PM UTC+2 Martin Heitmann wrote:

> Dear Jason
>
> I went two migration steps back, then again I did makemigrations and then 
> I went for sqlmigrate. This was the output:
> python3 manage.py sqlmigrate ObjPLW2 0037
> --
> -- Create model Wartungsarbeit
> --
> --
> -- Alter field w_bezahlt on waeschepaket
> --
> It does not include any SQL.
>
> Does anyone know where this is no SQL in the output?
>
> On Saturday, April 1, 2023 at 3:46:41 PM UTC+2 Martin Heitmann wrote:
>
>> Dear Jason
>> Thanks for your reply. I will gladly do that. This is the latest 
>> migration file:
>>
>> # Generated by Django 3.2.10 on 2023-04-01 13:45
>>
>> from django.db import migrations, models
>> import django.utils.timezone
>>
>>
>> class Migration(migrations.Migration):
>>
>> dependencies = [
>> ('ObjPLW2', '0037_alter_waeschepaket_w_bezahlt'),
>> ]
>>
>> operations = [
>> migrations.CreateModel(
>> name='Wartungsarbeit',
>> fields=[
>> ('id', models.AutoField(auto_created=True, 
>> primary_key=True, serialize=False, verbose_name='ID')),
>> ('wa_titel', models.CharField(max_length=201)),
>> ('wa_beschreibung', models.TextField()),
>> ('wa_turnus', models.PositiveIntegerField(default=1)),
>> ('wa_startdatum', 
>> models.DateField(default=django.utils.timezone.now)),
>> ('wa_erstelldatum', 
>> models.DateTimeField(auto_now_add=True)),
>> ('wa_bearbeitungsdatum', 
>> models.DateTimeField(auto_now=True)),
>> ],
>> ),
>> ]
>>
>> Does this help?
>> On Saturday, April 1, 2023 at 1:55:00 PM UTC+2 Jason wrote:
>>
>>> part of getting effective help is sharing how you're doing things and 
>>> the code.  for example, sharing the migration generated would be helpful. 
>>> you do have the context of how and what is being executed, we don't, so 
>>> sharing that with your original questions is a big part in getting 
>>> effective help
>>> On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heitmann wrote:
>>>
 The migrations do not show up in the django_mirations table. The 
 problem must occur earlier. 
 On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:

> I would check in the django_migrations table to ensure that the 
> migration has successfully been run.
>
>
>
> From: 'Martin Heitmann' via Django users 
> Reply: django...@googlegroups.com 
> Date: 31 March 2023 at 19:46:02
> To: Django users 
> Subject:  Migration running in shell, but no change in DB 
>
> Hello everyone
>>
>> I have a project with multiple apps in it. As database I use MariaDB. 
>> Have not touched it for a while, but now I had to add a field to the 
>> models 
>> of one app. makemigrations and migrate run without any indication of an 
>> error. But no change occurs in the db. Tested it with an altered 
>> models.py 
>> in another app and the result is the same. Do you have any advice how to 
>> narrow this down?
>>
>> Best regards
>> Martin
>>
> --
>> 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/be9ef414-4b51-4072-a1b7-b7ba036016aan%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/e5b740a8-7af6-48be-9482-099686accce5n%40googlegroups.com.


Re: Question re: input

2023-04-01 Thread Robin Riis
You can check out rabbitMQ if it can fit your needs. Theres a plugin in
django that simplifies integration.

On Sat, Apr 1, 2023, 19:06 o1bigtenor  wrote:

> On Sat, Apr 1, 2023 at 9:51 AM Robin Riis  wrote:
> >
> > What kind of environment are we talking about?
>
> Me designed software  - - - physically challenging (possible outdoors,
> possible inclement conditions + )
> >
> > But i guess you mean that you have a server in one location and multiple
> clients from diffrent locations that should be able to upload some kind of
> data to the server.
>
> Not really
> >
> > SSH is great to connect to a remote machine in a secure manner. And scp
> to send files over ssh.
> >
> > But it may not be what you are seeking. Is it files you wanna send or a
> bytestream? What requirements are needed regarding security? About how much
> data will be sent per request? Would you wanna send data over udp or tcp?
> Are you really asking in the right forum?
> >
> > Maybee checkout unix sockets.
> >
> > Or is it just like people would login and write like a comment or upload
> a photo?
> >
>
> More like user a needs to include notes on item xx
> user b is doing y
> user c has observed event WNIYx
> possibly 15 to 20 input streams possible
>
>
> (information I can find is predominantly finding information on web - - - -
> this is much more doing task x - - - generating notes/data
> task . . . .
> etc to where there are a lot of tasks (some will generate a lot of
> data (pulled into a database))
>
> Does this help?
>
> --
> 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/CAPpdf59q8YbZMbaZ8%3DVkNVyWFa59mMCW%2BUWA807qafP%3DHNTu%2BQ%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/CAPLZMbNx3-gDLUsw3k0Bp%2BbTn0i%3DATbNTzK7%3Des-OQzgOFX2Vg%40mail.gmail.com.


Re: Question re: input

2023-04-01 Thread o1bigtenor
On Sat, Apr 1, 2023 at 9:51 AM Robin Riis  wrote:
>
> What kind of environment are we talking about?

Me designed software  - - - physically challenging (possible outdoors,
possible inclement conditions + )
>
> But i guess you mean that you have a server in one location and multiple 
> clients from diffrent locations that should be able to upload some kind of 
> data to the server.

Not really
>
> SSH is great to connect to a remote machine in a secure manner. And scp to 
> send files over ssh.
>
> But it may not be what you are seeking. Is it files you wanna send or a 
> bytestream? What requirements are needed regarding security? About how much 
> data will be sent per request? Would you wanna send data over udp or tcp? Are 
> you really asking in the right forum?
>
> Maybee checkout unix sockets.
>
> Or is it just like people would login and write like a comment or upload a 
> photo?
>

More like user a needs to include notes on item xx
user b is doing y
user c has observed event WNIYx
possibly 15 to 20 input streams possible


(information I can find is predominantly finding information on web - - - -
this is much more doing task x - - - generating notes/data
task . . . .
etc to where there are a lot of tasks (some will generate a lot of
data (pulled into a database))

Does this help?

-- 
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/CAPpdf59q8YbZMbaZ8%3DVkNVyWFa59mMCW%2BUWA807qafP%3DHNTu%2BQ%40mail.gmail.com.


Re: Adding extra registration fields to my user registration

2023-04-01 Thread Marcelo Robin
you can create an application called profile where in its models you can
place all the fields you need to add about the user. This video explains
how you can do it. https://youtu.be/R8EHCohLvbw

El jue, 30 mar 2023 a la(s) 00:08, Ebenezer Otchere (swazyman1...@gmail.com)
escribió:

> I want to collect user information in my registration forms like first
> name last name and country
> but it give me errors that unexpected keyword arguments with firstname
> lastname and country
> Any help how i will add extra fields to be store in the database thank You
> and advance
>
> --
> 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/97319e37-1d3d-4000-8f65-4c161140d878n%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/CAH25kbSWp_1jmFYKdOcOWG3UTeU0EX%2BOTevKQ6f_T-b99Vxgzg%40mail.gmail.com.


Re: Django-allauth & Facebook login

2023-04-01 Thread Namanya Daniel
Follow the following link, it shows you how to create a custom ssl
certificate and how to run ssl server
https://medium.com/@millienakiganda/creating-an-ssl-certificate-for-localhost-in-django-framework-45290d905b88



On Sat, 1 Apr 2023 at 15:32, Marcelo A. Robin 
wrote:

> Hi, I'm trying to use django-allauth to create a facebook login system.  i
> managed to get it all done but in my local test i get an error where
> facebook tells me my app path is not safe.  I understand that my
> http://localhost is missing the https://localhost.  this is so ?  How can
> I add https to my Django test server?
>
> I think there is an add-on that by installing it creates the https at the
> beginning of the route 127.0.0.1:8000.  What I don't know is if, when
> uploading the project to production, I should remove that library along
> with all the configurations that I have to do in settings.py
>
> --
> 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/a2e6588d-9808-485d-8099-82d043833922n%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/CAP4VW2Xdukfpuy%2Bxv4gmpcTzdx%3De8kenzp0aZkZwm2VAfx0_5w%40mail.gmail.com.


Re: Question re: input

2023-04-01 Thread Robin Riis
What kind of environment are we talking about?

But i guess you mean that you have a server in one location and multiple
clients from diffrent locations that should be able to upload some kind of
data to the server.

SSH is great to connect to a remote machine in a secure manner. And scp to
send files over ssh.

But it may not be what you are seeking. Is it files you wanna send or a
bytestream? What requirements are needed regarding security? About how much
data will be sent per request? Would you wanna send data over udp or tcp?
Are you really asking in the right forum?

Maybee checkout unix sockets.

Or is it just like people would login and write like a comment or upload a
photo?

Im just shooting in the dark here..
Please be more specific.

On Sat, Apr 1, 2023, 16:33 o1bigtenor  wrote:

> Greetings
>
> I am in the porcess of planning out a complicated environment.
>
> User will almost always be remote.
>
> How does one easily get information 'into' the environment?
>
> (Not sure these are the right questions but
> 1. Does one have to be connected to the environment
> 2. Does the complete form have to be on the inputting device   )
>
> for starters
>
> TIA
>
> --
> 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/CAPpdf59HucOB%3Ds99MxkxkfZ3HFmMO7DN4EP%3Dm3ub67%3D_iHArew%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/CAPLZMbMqvkL1xVdmuh8L1mNTX5GcWs_ForpxugncJMYnKCAmKA%40mail.gmail.com.


Question re: input

2023-04-01 Thread o1bigtenor
Greetings

I am in the porcess of planning out a complicated environment.

User will almost always be remote.

How does one easily get information 'into' the environment?

(Not sure these are the right questions but
1. Does one have to be connected to the environment
2. Does the complete form have to be on the inputting device   )

for starters

TIA

-- 
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/CAPpdf59HucOB%3Ds99MxkxkfZ3HFmMO7DN4EP%3Dm3ub67%3D_iHArew%40mail.gmail.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
Dear Muhammad

Thanks, but I did that several times. And I also check the INSTALLED_APPS. 
It is listed there, as it was before. :/

Best regards
Martin

On Saturday, April 1, 2023 at 2:48:05 PM UTC+2 Muhammad Juwaini Abdul 
Rahman wrote:

> Try running:
> ```
> ./manage.py makemigrations 
> ```
>
> If there are no changes detected by makemigrations, something wrong with 
> your app. Check INSTALLED_APPS in settings.py for any error.
>
> On Friday, 31 March 2023 at 22:17:06 UTC+8 Martin Heitmann wrote:
>
>> Hello everyone
>>
>> I have a project with multiple apps in it. As database I use MariaDB. 
>> Have not touched it for a while, but now I had to add a field to the models 
>> of one app. makemigrations and migrate run without any indication of an 
>> error. But no change occurs in the db. Tested it with an altered models.py 
>> in another app and the result is the same. Do you have any advice how to 
>> narrow this down?
>>
>> Best regards
>> Martin
>>
>

-- 
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/4c8bbe4c-57d3-4d61-bbe9-23fc8644afb7n%40googlegroups.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
Dear Jason
Thanks for your reply. I will gladly do that. This is the latest migration 
file:

# Generated by Django 3.2.10 on 2023-04-01 13:45

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

dependencies = [
('ObjPLW2', '0037_alter_waeschepaket_w_bezahlt'),
]

operations = [
migrations.CreateModel(
name='Wartungsarbeit',
fields=[
('id', models.AutoField(auto_created=True, 
primary_key=True, serialize=False, verbose_name='ID')),
('wa_titel', models.CharField(max_length=201)),
('wa_beschreibung', models.TextField()),
('wa_turnus', models.PositiveIntegerField(default=1)),
('wa_startdatum', 
models.DateField(default=django.utils.timezone.now)),
('wa_erstelldatum', 
models.DateTimeField(auto_now_add=True)),
('wa_bearbeitungsdatum', 
models.DateTimeField(auto_now=True)),
],
),
]

Does this help?
On Saturday, April 1, 2023 at 1:55:00 PM UTC+2 Jason wrote:

> part of getting effective help is sharing how you're doing things and the 
> code.  for example, sharing the migration generated would be helpful. you 
> do have the context of how and what is being executed, we don't, so sharing 
> that with your original questions is a big part in getting effective help
> On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heitmann wrote:
>
>> The migrations do not show up in the django_mirations table. The problem 
>> must occur earlier. 
>> On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:
>>
>>> I would check in the django_migrations table to ensure that the 
>>> migration has successfully been run.
>>>
>>>
>>>
>>> From: 'Martin Heitmann' via Django users 
>>> Reply: django...@googlegroups.com 
>>> Date: 31 March 2023 at 19:46:02
>>> To: Django users 
>>> Subject:  Migration running in shell, but no change in DB 
>>>
>>> Hello everyone

 I have a project with multiple apps in it. As database I use MariaDB. 
 Have not touched it for a while, but now I had to add a field to the 
 models 
 of one app. makemigrations and migrate run without any indication of an 
 error. But no change occurs in the db. Tested it with an altered models.py 
 in another app and the result is the same. Do you have any advice how to 
 narrow this down?

 Best regards
 Martin

>>> --
 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/be9ef414-4b51-4072-a1b7-b7ba036016aan%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/c6d2bbd0-96cd-4f69-90c3-46d082029704n%40googlegroups.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread Muhammad Juwaini Abdul Rahman
Try running:
```
./manage.py makemigrations 
```

If there are no changes detected by makemigrations, something wrong with 
your app. Check INSTALLED_APPS in settings.py for any error.

On Friday, 31 March 2023 at 22:17:06 UTC+8 Martin Heitmann wrote:

> Hello everyone
>
> I have a project with multiple apps in it. As database I use MariaDB. Have 
> not touched it for a while, but now I had to add a field to the models of 
> one app. makemigrations and migrate run without any indication of an error. 
> But no change occurs in the db. Tested it with an altered models.py in 
> another app and the result is the same. Do you have any advice how to 
> narrow this down?
>
> Best regards
> Martin
>

-- 
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/3df9a5a4-657b-4bef-a124-a146b71d5882n%40googlegroups.com.


Django-allauth & Facebook login

2023-04-01 Thread Marcelo A. Robin
Hi, I'm trying to use django-allauth to create a facebook login system.  i 
managed to get it all done but in my local test i get an error where 
facebook tells me my app path is not safe.  I understand that my 
http://localhost is missing the https://localhost.  this is so ?  How can I 
add https to my Django test server?

I think there is an add-on that by installing it creates the https at the 
beginning of the route 127.0.0.1:8000.  What I don't know is if, when 
uploading the project to production, I should remove that library along 
with all the configurations that I have to do in settings.py

-- 
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/a2e6588d-9808-485d-8099-82d043833922n%40googlegroups.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread Jason
part of getting effective help is sharing how you're doing things and the 
code.  for example, sharing the migration generated would be helpful. you 
do have the context of how and what is being executed, we don't, so sharing 
that with your original questions is a big part in getting effective help
On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heitmann wrote:

> The migrations do not show up in the django_mirations table. The problem 
> must occur earlier. 
> On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:
>
>> I would check in the django_migrations table to ensure that the migration 
>> has successfully been run.
>>
>>
>>
>> From: 'Martin Heitmann' via Django users 
>> Reply: django...@googlegroups.com 
>> Date: 31 March 2023 at 19:46:02
>> To: Django users 
>> Subject:  Migration running in shell, but no change in DB 
>>
>> Hello everyone
>>>
>>> I have a project with multiple apps in it. As database I use MariaDB. 
>>> Have not touched it for a while, but now I had to add a field to the models 
>>> of one app. makemigrations and migrate run without any indication of an 
>>> error. But no change occurs in the db. Tested it with an altered models.py 
>>> in another app and the result is the same. Do you have any advice how to 
>>> narrow this down?
>>>
>>> Best regards
>>> Martin
>>>
>> --
>>> 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/be9ef414-4b51-4072-a1b7-b7ba036016aan%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/c689793e-3795-46c1-b875-8f2068981357n%40googlegroups.com.


Re: Debug error when c

2023-04-01 Thread Alen Zuvic
pet, 31. ožu 2023. 07:23 Usra Saeed  je napisao:

> Hi, are you installing django on Visual Studio and during this
> installation you got this error?
>
> On Thu, 30 Mar 2023, 10:48 pm Ricky Abura,  wrote:
>
>> Hi,
>> I am learning django, in the process of developing youtube clone, I meet
>> the attached error when installing django debug toolbar. I don't know where
>> I am not getting right but I strictly follow some tutorial. Any assistance
>> please?
>>
>> --
>> 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/fd470375-10c2-4c97-93d3-feaed4130dc1n%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/CABKCzOOGpi-gCEhS1Hjuz1-f1vAsO9Lekv%3DHDocmT6XQF_H2Ng%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/CAABMtprYapUegE5yp8rHij6QcR2O%3D9YED27qUpo%3D0VkAe6RwUw%40mail.gmail.com.


Re: Debug error when c

2023-04-01 Thread Prosper Lekia
Remove the second urlpattern, and add the debug_toolbar path to the first 
urlpattern. Try running makemigrations and migrate after installing the 
debug_toolbar.

On Thursday, March 30, 2023 at 6:48:51 PM UTC+1 Ricky Abura wrote:

> Hi,
> I am learning django, in the process of developing youtube clone, I meet 
> the attached error when installing django debug toolbar. I don't know where 
> I am not getting right but I strictly follow some tutorial. Any assistance 
> please?
>

-- 
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/36cfe6fe-4186-4fa8-9c31-9e57a0428c03n%40googlegroups.com.


Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
The migrations do not show up in the django_mirations table. The problem 
must occur earlier. 
On Saturday, April 1, 2023 at 8:42:20 AM UTC+2 David Nugent wrote:

> I would check in the django_migrations table to ensure that the migration 
> has successfully been run.
>
>
>
> From: 'Martin Heitmann' via Django users 
> Reply: django...@googlegroups.com 
> Date: 31 March 2023 at 19:46:02
> To: Django users 
> Subject:  Migration running in shell, but no change in DB 
>
> Hello everyone
>>
>> I have a project with multiple apps in it. As database I use MariaDB. 
>> Have not touched it for a while, but now I had to add a field to the models 
>> of one app. makemigrations and migrate run without any indication of an 
>> error. But no change occurs in the db. Tested it with an altered models.py 
>> in another app and the result is the same. Do you have any advice how to 
>> narrow this down?
>>
>> Best regards
>> Martin
>>
> --
>> 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/be9ef414-4b51-4072-a1b7-b7ba036016aan%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/85e72a9e-2bf1-48f8-aa48-059487c172ccn%40googlegroups.com.