<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Install Django with Apache on Ubuntu 22.04	</title>
	<atom:link href="https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Tue, 31 Oct 2023 14:11:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Steve		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-564</link>

		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Tue, 31 Oct 2023 14:11:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-564</guid>

					<description><![CDATA[Fixed issues from above -- put here for anyone else running into this

**change directory ownership of /var/www to ubuntu:ubuntu

** remove /etc/apache2/sites-available/000-default.conf

** restart apache2 server]]></description>
			<content:encoded><![CDATA[<p>Fixed issues from above &#8212; put here for anyone else running into this</p>
<p>**change directory ownership of /var/www to ubuntu:ubuntu</p>
<p>** remove /etc/apache2/sites-available/000-default.conf</p>
<p>** restart apache2 server</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Steve		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-563</link>

		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Tue, 31 Oct 2023 11:33:08 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-563</guid>

					<description><![CDATA[**And I should note, I am in the virtual env when I run the make migrations command]]></description>
			<content:encoded><![CDATA[<p>**And I should note, I am in the virtual env when I run the make migrations command</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Steve		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-562</link>

		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Tue, 31 Oct 2023 11:32:18 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-562</guid>

					<description><![CDATA[I am doing this on Amazon Lightsail.
I need to put &#039;sudo&#039; before all commands or get permission denied error.

When I go to make migrations, I get the following error

File &quot;/var/www/django_project/manage.py&quot;, line 11, in main
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named &#039;django&#039;

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File &quot;/var/www/django_project/manage.py&quot;, line 22, in 
    main()
  File &quot;/var/www/django_project/manage.py&quot;, line 13, in main
    raise ImportError(
ImportError: Couldn&#039;t import Django. Are you sure it&#039;s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?


Help!]]></description>
			<content:encoded><![CDATA[<p>I am doing this on Amazon Lightsail.<br />
I need to put &#8216;sudo&#8217; before all commands or get permission denied error.</p>
<p>When I go to make migrations, I get the following error</p>
<p>File &#8220;/var/www/django_project/manage.py&#8221;, line 11, in main<br />
    from django.core.management import execute_from_command_line<br />
ModuleNotFoundError: No module named &#8216;django&#8217;</p>
<p>The above exception was the direct cause of the following exception:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/var/www/django_project/manage.py&#8221;, line 22, in<br />
    main()<br />
  File &#8220;/var/www/django_project/manage.py&#8221;, line 13, in main<br />
    raise ImportError(<br />
ImportError: Couldn&#8217;t import Django. Are you sure it&#8217;s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?</p>
<p>Help!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michael Asomugha		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-336</link>

		<dc:creator><![CDATA[Michael Asomugha]]></dc:creator>
		<pubDate>Thu, 21 Sep 2023 05:22:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-336</guid>

					<description><![CDATA[Thank you so much]]></description>
			<content:encoded><![CDATA[<p>Thank you so much</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LinuxTuto		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-206</link>

		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Fri, 25 Aug 2023 11:41:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-206</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-205&quot;&gt;DanR&lt;/a&gt;.

Please first install the following dependencies:

&lt;pre&gt;&lt;code&gt;# apt-get install python3-dev default-libmysqlclient-dev build-essential&lt;/code&gt;&lt;/pre&gt;

Then run again the command:

&lt;pre&gt;&lt;code&gt;# pip install mysqlclient&lt;/code&gt;&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-205">DanR</a>.</p>
<p>Please first install the following dependencies:</p>
<pre><code># apt-get install python3-dev default-libmysqlclient-dev build-essential</code></pre>
<p>Then run again the command:</p>
<pre><code># pip install mysqlclient</code></pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: DanR		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-205</link>

		<dc:creator><![CDATA[DanR]]></dc:creator>
		<pubDate>Fri, 25 Aug 2023 04:29:17 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-205</guid>

					<description><![CDATA[(django_env) # pip install mysqlclient produces an error:
Collecting mysqlclient
  Using cached mysqlclient-2.2.0.tar.gz (89 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
I wanted to reproduce your workflow exactly before modifying it to suit my needs. However, it has stopped at this point. Any suggestions?]]></description>
			<content:encoded><![CDATA[<p>(django_env) # pip install mysqlclient produces an error:<br />
Collecting mysqlclient<br />
  Using cached mysqlclient-2.2.0.tar.gz (89 kB)<br />
  Installing build dependencies &#8230; done<br />
  Getting requirements to build wheel &#8230; error<br />
  error: subprocess-exited-with-error</p>
<p>  × Getting requirements to build wheel did not run successfully.<br />
I wanted to reproduce your workflow exactly before modifying it to suit my needs. However, it has stopped at this point. Any suggestions?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LinuxTuto		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-124</link>

		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 30 Mar 2023 07:01:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-124</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-123&quot;&gt;awaludin&lt;/a&gt;.

Yes, correct.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-123">awaludin</a>.</p>
<p>Yes, correct.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: awaludin		</title>
		<link>https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-123</link>

		<dc:creator><![CDATA[awaludin]]></dc:creator>
		<pubDate>Thu, 30 Mar 2023 04:39:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=757#comment-123</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-122&quot;&gt;LinuxTuto&lt;/a&gt;.

Thanks a lot for your reply. 
So if I want to deploy django with Python3.11, mod_wsgi for Apache must to compiled in python3.11, right?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.linuxtuto.com/how-to-install-django-with-apache-on-ubuntu-22-04/#comment-122">LinuxTuto</a>.</p>
<p>Thanks a lot for your reply.<br />
So if I want to deploy django with Python3.11, mod_wsgi for Apache must to compiled in python3.11, right?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
