Re: django.db.utils.OperationalError: no such table abc

2021-10-20 Thread Lakshyaraj Dash X-D 25
It will happen if you have deleted the initial migration or check your
settings properly.

On Thu, Oct 21, 2021, 04:21 Ammon Quackenbush  wrote:

> I am working on a django project and I am getting this error when I
> attempt to run the "python manage.py makemigrations" command:
>
> django.db.utils.OperationalError: no such table: myApp_tableStatus
>
> The table tableStatus exists in my models.py.
>
> Any ideas what I can do to fix this problem?
>
> I tried deleting my virtual environment and creating a new one but that
> did not make a difference.
>
> --
> 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/99f2bba5-769c-42ea-8caa-563a6d6757acn%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/CAF7qQgDKZWOaEopkQhaiz11-7kEpqApRNEu-TjvrOopEi1M%3DgA%40mail.gmail.com.


django.db.utils.OperationalError: no such table abc

2021-10-20 Thread Ammon Quackenbush
I am working on a django project and I am getting this error when I attempt 
to run the "python manage.py makemigrations" command:

django.db.utils.OperationalError: no such table: myApp_tableStatus

The table tableStatus exists in my models.py.

Any ideas what I can do to fix this problem?

I tried deleting my virtual environment and creating a new one but that did 
not make a difference.

-- 
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/99f2bba5-769c-42ea-8caa-563a6d6757acn%40googlegroups.com.


Re: django datatable

2021-10-20 Thread Planet X
hey this is my code



On Wed, Oct 20, 2021 at 11:09 PM Lakshyaraj Dash X-D 25 <
dashlakshyaraj2...@gmail.com> wrote:

> You can use tailwind css, material ui, bootstrap or if you want to use
> custom css, just inspect the element and target the id of the element and
> add custom css.
>
> On Wed, Oct 20, 2021, 11:26 Eugene TUYIZERE 
> wrote:
>
>> Please suggest a good CSS  for the datatable below
>> [image: image.png]
>> Regards,
>>
>> --
>> *Eugene*
>>
>> --
>> 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/CABxpZHvN2XvzwQ0V4swjK1JD8MwY6Rq9tN8uUuqOpZFaqdjHdQ%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/CAF7qQgBySne3sGL6iqMn-424c2p-9uO8X80%3D2iPNJqY_gWgU5Q%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/CAHJxyjbUA3dH2yJT%3DPS%2BKZuxLTKeXC6z_cUCJG0cBgpGTVqcig%40mail.gmail.com.


Re: django datatable

2021-10-20 Thread Lakshyaraj Dash X-D 25
You can use tailwind css, material ui, bootstrap or if you want to use
custom css, just inspect the element and target the id of the element and
add custom css.

On Wed, Oct 20, 2021, 11:26 Eugene TUYIZERE 
wrote:

> Please suggest a good CSS  for the datatable below
> [image: image.png]
> Regards,
>
> --
> *Eugene*
>
> --
> 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/CABxpZHvN2XvzwQ0V4swjK1JD8MwY6Rq9tN8uUuqOpZFaqdjHdQ%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/CAF7qQgBySne3sGL6iqMn-424c2p-9uO8X80%3D2iPNJqY_gWgU5Q%40mail.gmail.com.


Re: Modeform Foreign key column not working

2021-10-20 Thread lalit suthar
is `ConnectionTypes` a foreign key to `ConnectionDetails`?
in that case you don't need to put it as a field in form, it will be added 
automatically in the form. 
On Wednesday, 20 October 2021 at 18:47:44 UTC+5:30 Aruna Priya wrote:

> Hi,
>
> I am trying to create a form from model and the model has a foreign key 
> and am not able to populate the values from the column it refers to.
>
> My form,
>
> class ConnectionForm(forms.ModelForm):
>
>  connection_type = 
> forms.ModelChoiceField(queryset=ConnectionTypes.objects.all(), 
> to_field_name='connection_type_id')
>
> class Meta:
> model = ConnectionDetails
> exclude = ['connection_id','last_update_date']
>
>
>

-- 
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/e4b14379-40de-4ea2-8e2c-960448bb8cdfn%40googlegroups.com.


Re: What it takes to bring web application to a mobile app

2021-10-20 Thread Lalit Suthar
you can create apis with django-rest-framework and then can use them at all
the backends for web and mobile.

On Wed, 20 Oct 2021 at 12:58, Stijn Verholen  wrote:

> :D
> On 19/10/2021 17:28, Planet X wrote:
>
> Hey there all all you Mind-blowing people
> i am new in django i am trying to set my view and urls of app and project
> i tried lots of time it showing errors please help me out to do i want to
> learn with the help of your
>
> On Tuesday, October 19, 2021 at 2:31:53 PM UTC+5:30 ram.mu...@gmail.com
> wrote:
>
>> Hi,
>>
>> We are planning to create a mobile app for our e-commerce web application
>> that is being developed on DJango, Python, VUE Js and we need to keep both
>> mobile and web interfaces but data should be synced seamlessly. Also we
>> don’t want responsive design web app in mobile view.
>>
>> Best regards,
>> ~ Ram
>> ~ Ram
>
> --
> 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/53d6d752-020f-4df6-a250-44e80f19af58n%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/07d765fc-310c-f575-0fb2-07552edae59e%40gmail.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/CAGp2JVHYFkjHZS2%3DO2LpkTYEpnChh43Pad-9G%2BA_UM1GRO46ww%40mail.gmail.com.


Re: django datatable

2021-10-20 Thread Lalit Suthar
you can try bootstrap also

On Wed, 20 Oct 2021 at 12:46, Abhishek Choudhury <
choudhuryabhishe...@gmail.com> wrote:

> Hi,
>
> You can use Tailwind CSS and it will significantly improve the UI.
>
>
> Thanks and regards,
> Abhishek Choudhury
>
>
> On Wed, 20 Oct 2021 at 11:26 AM, Eugene TUYIZERE 
> wrote:
>
>> Please suggest a good CSS  for the datatable below
>> [image: image.png]
>> Regards,
>>
>>
>> --
>> *Eugene*
>>
>> --
>> 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/CABxpZHvN2XvzwQ0V4swjK1JD8MwY6Rq9tN8uUuqOpZFaqdjHdQ%40mail.gmail.com
>> 
>> .
>>
> --
> Thanks and regards,
> Abhishek Choudhury
> Mobile: +91 7903717967
>
> --
> 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/CA%2B3kJUbpfhoMvbQvO51NtUEKszJCzkfV%3DKSUQ2LhejLA0w6Zqw%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/CAGp2JVHBzAyabU5pH7yvPfyrk9WpM5%2BT7NtJkdWubjn6WyUR%2Bw%40mail.gmail.com.


Modelform foreign key not working

2021-10-20 Thread Aruna Priya Nagarajan
Am new to django, and I am trying to create a form using modelform. The 
form has foerign key value (connection_type below in forms.py) and its not 
displaying the values it is referring to.

For the image below, the columns,
Connection name : displayed
Connection type : text box has not appeared
Endpoint : displayed 
 
[image: Capture.JPG]  
*forms.py*
**
class ConnectionForm(forms.ModelForm):

connection_type = 
*forms.ModelChoiceField(queryset=ConnectionTypes.objects.all(), 
to_field_name='connection_type_id')*

class Meta:
model = ConnectionDetails
exclude = ['connection_id','last_update_date']

*Models.py*
*==*

class ConnectionDetails(models.Model):
  connection_id = 
models.IntegerField(primary_key=True,default=re_sequence('connection_seq'))
  connection_name = models.CharField(max_length=200)
*  connection_type = models.IntegerField() *
  endpoint = models.CharField(max_length=100)
  port = models.IntegerField()
  login_id = models.CharField(max_length=100)
  login_password = fields.CharPGPPublicKeyField(max_length=100)
  connection_string_1 = fields.CharPGPPublicKeyField(max_length=100)
  connection_string_2 = fields.CharPGPPublicKeyField(max_length=100)
  connection_string_3 = fields.CharPGPPublicKeyField(max_length=100)
  aws_region = models.CharField(max_length=20)
  owner_id = models.IntegerField()
  last_update_date = models.DateTimeField(default=dbcurr_ts)
  working_schema = models.CharField(max_length=100)
  service = models.CharField(max_length=100)

  def generate_enc(mystrenc):
  return 'pass'

  class Meta:
managed = False
db_table = 'connection_details'
verbose_name = 'connection_details'
verbose_name_plural = 'connection_details'

class ConnectionTypes(models.Model):
  
*connection_type_id = 
models.IntegerField(primary_key=True,default=re_sequence('connection_type_seq'))*
  connection_type_name = models.CharField(max_length=100)
  connection_type_desc = models.CharField(max_length=300)
  connection_type_category = models.CharField(max_length=100)
  last_update_date = models.DateTimeField(default=dbcurr_ts)
  class Meta: 
managed = False
db_table ='connection_types'
verbose_name = 'connection_types'
verbose_name_plural = 'connection_types'

Can you please let me know what is the mistake am making?

Thanks,
Aruna 

-- 
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/a96c90cf-c8bc-48ab-b812-2a3e1c9f9e9fn%40googlegroups.com.


Re: HELP ME OUT

2021-10-20 Thread Uzzal Hossain
Change folder name to templates
There is typo mistake.
And let me if it's fixed.

On Wed, Oct 20, 2021, 3:15 PM Planet X  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CABszMp9-tG40xPQdfg1n%3Dr6DuiC4MqSgtACafWwkS3%3DxOn8asg%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Jamal El khdadi
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
   os.path.join(BASE_DIR, 'assets')
]

On Wed, Oct 20, 2021, 11:00 AM Lakshyaraj Dash X-D 25 <
dashlakshyaraj2...@gmail.com> wrote:

> Change the assets to static
>
> On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:
>
>> I can not connect to my static files here i am sending my screen shoot of
>> the setting and others links to the my base.html whats my fault please do
>> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgAnM1ckX7zaGfeVTfB9PJpUuZ99C1w%2B9Hbb%2B85ke7tb8A%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/CAB889%2ByxhKMzA7T3Zx-5VS%3D1jOTgWzOa%2BNr0aptk33KM6FOK4A%40mail.gmail.com.


Modeform Foreign key column not working

2021-10-20 Thread Aruna Priya
Hi,

I am trying to create a form from model and the model has a foreign key and 
am not able to populate the values from the column it refers to.

My form,

class ConnectionForm(forms.ModelForm):
 connection_type = 
forms.ModelChoiceField(queryset=ConnectionTypes.objects.all(), 
to_field_name='connection_type_id')

class Meta:
model = ConnectionDetails
exclude = ['connection_id','last_update_date']


-- 
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/f5145780-1a87-451a-a0a3-8f100527499an%40googlegroups.com.


Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Do one thing... In the templates inside {% static 'css/style.css' %} make
it {% static 'prsquare/css/style.css' %}

On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgBH3-%2B9oWtsvLhr6%3DZs9j1%2BDqXz%3DiVDd34KOG2gDDqS1g%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Change the assets to static

On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgAnM1ckX7zaGfeVTfB9PJpUuZ99C1w%2B9Hbb%2B85ke7tb8A%40mail.gmail.com.


HELP ME OUT

2021-10-20 Thread Planet X
I can not connect to my static files here i am sending my screen shoot of 
the setting and others links to the my base.html whats my fault please do 
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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%40googlegroups.com.


Re: What it takes to bring web application to a mobile app

2021-10-20 Thread Stijn Verholen

:D

On 19/10/2021 17:28, Planet X wrote:

Hey there all all you Mind-blowing people
i am new in django i am trying to set my view and urls of app and 
project i tried lots of time it showing errors please help me out to 
do i want to learn with the help of your


On Tuesday, October 19, 2021 at 2:31:53 PM UTC+5:30 
ram.mu...@gmail.com wrote:


Hi,

We are planning to create a mobile app for our e-commerce web
application that is being developed on DJango, Python, VUE Js and
we need to keep both mobile and web interfaces but data should be
synced seamlessly. Also we don’t want responsive design web app in
mobile view.

Best regards,
~ Ram
~ Ram

--
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/53d6d752-020f-4df6-a250-44e80f19af58n%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/07d765fc-310c-f575-0fb2-07552edae59e%40gmail.com.


Re: django datatable

2021-10-20 Thread Abhishek Choudhury
Hi,

You can use Tailwind CSS and it will significantly improve the UI.


Thanks and regards,
Abhishek Choudhury


On Wed, 20 Oct 2021 at 11:26 AM, Eugene TUYIZERE 
wrote:

> Please suggest a good CSS  for the datatable below
> [image: image.png]
> Regards,
>
>
> --
> *Eugene*
>
> --
> 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/CABxpZHvN2XvzwQ0V4swjK1JD8MwY6Rq9tN8uUuqOpZFaqdjHdQ%40mail.gmail.com
> 
> .
>
-- 
Thanks and regards,
Abhishek Choudhury
Mobile: +91 7903717967

-- 
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/CA%2B3kJUbpfhoMvbQvO51NtUEKszJCzkfV%3DKSUQ2LhejLA0w6Zqw%40mail.gmail.com.