<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AkshayKumarC132</title>
    <description>The latest articles on DEV Community by AkshayKumarC132 (@akshaykumarc132).</description>
    <link>https://dev.to/akshaykumarc132</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F887252%2F7bbb7c67-139e-49cd-94d5-b47437321de5.png</url>
      <title>DEV Community: AkshayKumarC132</title>
      <link>https://dev.to/akshaykumarc132</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akshaykumarc132"/>
    <language>en</language>
    <item>
      <title>How to create a relations between primary key and foreign key in Django models and POST values into DB</title>
      <dc:creator>AkshayKumarC132</dc:creator>
      <pubDate>Fri, 19 Aug 2022 09:31:44 +0000</pubDate>
      <link>https://dev.to/akshaykumarc132/how-to-create-a-relations-between-primary-key-and-foreign-key-in-django-models-and-post-values-into-db-2904</link>
      <guid>https://dev.to/akshaykumarc132/how-to-create-a-relations-between-primary-key-and-foreign-key-in-django-models-and-post-values-into-db-2904</guid>
      <description>&lt;p&gt;I have a Django app which is basically an Online shopping. Right now I have two models: User_details and Extend_user_deatils.&lt;/p&gt;

&lt;p&gt;In User_details I have(Username, Firstname, lastname, email, etc..). Now after that i need to extend User_details Model with Other Fields so I have Created another Model Extend_user_deatils consisting of (Mobile , Age) columns.&lt;/p&gt;

&lt;p&gt;Now i need to Link those Two Models, for that I have written an `logic with Foreign Key Reference&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;`&lt;br&gt;
class User_details(models.Model):  #Table 1&lt;br&gt;
    id = models.AutoField(primary_key=True, db_column='user_id')&lt;br&gt;
    username = models.CharField(max_length=50)&lt;br&gt;
    first_name = models.CharField(max_length=50, blank=True, null=True)&lt;br&gt;
    last_name = models.CharField(max_length=50, blank=True, null=True)&lt;br&gt;
    email = models.CharField(max_length=50)&lt;/p&gt;

&lt;p&gt;class Extend_user_details(models.Model):    #Table 2&lt;br&gt;
    user =models.ForeignKey(User_details, on_delete=models.CASCADE,db_column='user_id')&lt;br&gt;
    mobile = models.BigIntegerField(blank=True, null=True)&lt;br&gt;
    age = models.IntegerField(blank=True, null=True)&lt;br&gt;
`&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;When I Open Django admin Page and Post the Data it is Working Fine and Values are posting into DB.&lt;/p&gt;

&lt;p&gt;When I register as a User from register page . ForeignKey Column(user) from Table2 is showing Null .apart from that all the inputs is posting into DB as shown &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--56t1ss_W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5a4pextlru0sm5rnpr9a.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--56t1ss_W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5a4pextlru0sm5rnpr9a.JPG" alt="Image description" width="460" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there any way to solve this issue&lt;/p&gt;

&lt;p&gt;Thanks in Advance&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>database</category>
    </item>
    <item>
      <title>How to create Public URL in Django Project to access in Other Machines</title>
      <dc:creator>AkshayKumarC132</dc:creator>
      <pubDate>Mon, 25 Jul 2022 06:53:45 +0000</pubDate>
      <link>https://dev.to/akshaykumarc132/how-to-create-public-url-in-django-project-to-access-in-other-machines-2fo5</link>
      <guid>https://dev.to/akshaykumarc132/how-to-create-public-url-in-django-project-to-access-in-other-machines-2fo5</guid>
      <description>&lt;p&gt;I'm working Django Project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How to create a Public IP permanently for Localhost(127.0.0.1:8000) IP in Django Project.&lt;/li&gt;
&lt;li&gt;After Creating Public URL, how to allow access for Other users without Source Code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;when I run &lt;strong&gt;python manage.py runserver x.x.x.x:8088&lt;/strong&gt; in command prompt it is generating a URL with specified IP address. But when I share/open this URL with others it is not working&lt;/p&gt;

&lt;p&gt;Can any one help me to configure this issue.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>vscode</category>
      <category>djangorestframework</category>
    </item>
    <item>
      <title>Removing Authentication in Superset</title>
      <dc:creator>AkshayKumarC132</dc:creator>
      <pubDate>Tue, 05 Jul 2022 04:29:42 +0000</pubDate>
      <link>https://dev.to/akshaykumarc132/removing-authentication-in-superset-nl2</link>
      <guid>https://dev.to/akshaykumarc132/removing-authentication-in-superset-nl2</guid>
      <description>&lt;p&gt;HI All,&lt;br&gt;
Is there any way to remove Authentication for Public Role User**&lt;br&gt;
and Not for Admin Role in Superset&lt;/p&gt;

</description>
      <category>apache</category>
      <category>superset</category>
      <category>security</category>
    </item>
  </channel>
</rss>
