Jump to content

Recommended Posts

Posted
Hi,

I have added below lines in .htaccess.
# Serve static files directly from disk ? skip Django/Passenger
RewriteCond %{REQUEST_URI} ^/static/
RewriteRule ^static/(.*)$ /home/
nrchoudhari.heliohost.us/carcareus.com/static/$1 [L]

# Serve media files directly from disk
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^media/(.*)$ /home/
nrchoudhari.heliohost.us/carcareus.com/media/$1 [L]

but now in error logs I can see below errors and UI is not loading its
giving sever error.

[Tue Mar 10 10:40:22.731479 2026] [wsgi:error] [pid 1234488:tid 1234553]
[client 172.71.198.169:0] ModuleNotFoundError: No module named 'softhauz'
[Tue Mar 10 10:49:43.794246 2026] [wsgi:error] [pid 1234490:tid 1234581]
[client 172.70.218.57:0] mod_wsgi (pid=1234490): Failed to exec Python
script file '/home/
nrchoudhari.heliohost.us/carcareus.com/config/dispatch.wsgi'.

On Tue, Mar 10, 2026 at 10:16?PM HelioHost Support
wrote:

> What directory are the css and js located in? Did you edit the .htaccess
> file to make sure the static css and js files are served directly, rather
> than being routed through django.wsgi?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

Posted

The .htaccess rules are executed in sequence from top to bottom, so if you put the static directories below

RewriteRule ^(.*)$ config/dispatch.wsgi/$1 [QSA,PT,L]

it will never match because that line matches everything and the [L] means it doesn't process anything below there. The lines with media and admin_media are examples of static directories, which is where you need to put them.

Posted
Hi,

Options +ExecCGI
RewriteEngine On
RewriteBase /
# Serve static files directly from disk ? skip Django/Passenger
RewriteCond %{REQUEST_URI} ^/static/
RewriteRule ^static/(.*)$ /home/
nrchoudhari.heliohost.us/carcareus.com/static/$1 [L]

# Serve media files directly from disk
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^media/(.*)$ /home/
nrchoudhari.heliohost.us/carcareus.com/media/$1 [L]
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(config/dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ config/dispatch.wsgi/$1 [QSA,PT,L]

This is the complete file. please correct it. I am not aware about this
file.

On Tue, Mar 10, 2026 at 11:05?PM HelioHost Support
wrote:

> The .htaccess rules are executed in sequence from top to bottom, so if you
> put the static directories below RewriteRule ^(.*)$ config/dispatch.wsgi/$1
> [QSA,PT,L] it will never match because that line matches everything and the
> [L] means it doesn't process anything below there. The lines with media and
> admin_media are examples of static directories, which is where you need to
> put them.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

I edited the file and simplified it a bit for you. Keep in mind that your DNS settings for carcareus.com are not correct, so I wouldn't worry too much about .htaccess until the domain is actually working.

Posted
Hi,

I have added two urls in my code and I am trying to add those in the
scheduled jobs but when I run the url it always gives me 404.
I have cross verified the code if I put some other url it works but those
two new urls are not working.
Could you please tell me how to restart the app, maybe Django is not
detecting those urls.

Thank you,

On Tue, Mar 10, 2026 at 11:46?PM HelioHost Support
wrote:

> I edited the file and simplified it a bit for you. Keep in mind that your
> DNS settings for carcareus.com are not correct, so I wouldn't worry too
> much about .htaccess until the domain is actually working.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted
Hi,

Now the cron job found the url without doing any changes. Now the main
question is how to restart the django server so that new changes gets
applied immediately.

Thank you,

On Sat, 14 Mar 2026, 12:08 am HelioHost Support,
wrote:

> What is the command you're trying to run with a scheduled task (cronjob)?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted
Hi,

I want to use the email of my domain to send emails from my website. Could
you provide me below details.
1. MX record setting for the domain name.
2. django settings.py configuration
3. While creating the email I tried to send unlimited send email option,
but could not because the error "value should be between 0..10"

Thank you,

On Sat, Mar 14, 2026 at 2:04?AM HelioHost Support
wrote:

> Here is the documentation on how to request restart access for Django
> https://wiki.helionet.org/Django_on_HelioHost#Request_WSGI_Control_Access
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

Your DNS is still wrong. Do you want to use our nameservers or external DNS, such as Cloudflare? Once you get your DNS figured out we can discuss the other stuff.

Posted
Hi,

I have purchased the domain on cloudflare, I have added heliohost name
servers over there but could not remove their name servers.
I don't think they provide any way to remove their name servers, Site is
working fine.

Thank you,

On Sat, Mar 14, 2026 at 9:59?PM HelioHost Support
wrote:

> Your DNS is still wrong. Do you want to use our nameservers or external
> DNS, such as Cloudflare? Once you get your DNS figured out we can discuss
> the other stuff.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

Ahh, yes. If you buy the domain from Cloudflare, they require you to use their nameservers, unless you transfer the domain to a better registrar. In that case you'll need to remove the NS values ns1.heliohost.org and ns2.heliohost.org since they will cause issues. You can't use Cloudflare NS records and HelioHost NS records at the same time.

Posted
Hi,

They have provided a flag if we turn it on then cloudflare does not ignore
other name servers so there is no issue if we keep heliohost nameservers.
Now could you please provide,
1. MX record setting for the domain name.
2. django settings.py configuration
3. While creating the email I tried to send unlimited send email option,
but could not because the error "value should be between 0..10"

On Sat, Mar 14, 2026 at 10:37?PM HelioHost Support
wrote:

> Ahh, yes. If you buy the domain from Cloudflare, they require you to use
> their nameservers, unless you transfer the domain to a better registrar. In
> that case you'll need to remove the NS values ns1.heliohost.org and
> ns2.heliohost.org since they will cause issues. You can't use Cloudflare
> NS records and HelioHost NS records at the same time.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

1. Here is the documentation for Cloudflare to add an MX record https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/ The value is just carcare.us and priority 0 if you want emails to be delivered to your Morty account.

2. Here is the documentation for Django to send emails https://docs.djangoproject.com/en/6.0/topics/email/ The from address will just be whatever email address you created in Plesk such as hello@carcare.us. Here is the documentation on how to find the mail values in Plesk https://wiki.helionet.org/Unlimited_Email_Accounts#Supported_Protocols Here are some example values: Mail server username: hello@carcare.us, Outgoing mail server (requires authentication): morty.heliohost.org, Incoming mail server: morty.heliohost.org, SMTP port: 465, IMAP port: 993. We recommend using your servername (morty.heliohost.org) instead of your actual domain (carcare.us) because it is more likely to work in case you don't have SSL, etc configured correctly on your domain.

3. In order to increase your email sending limit you must answer some additional questions:

1. How many emails you plan to send per day?
2. Where you get the email addresses from?
3. How can recipients of your emails unsubscribe?
4. Do you have an unsubscribe@yourdomain.com address set up?
5. Do you have an abuse@yourdomain.com address set up?
6. Does each email have a link to unsubscribe?
7. Do you share or sell email addresses that you get?
8. Post an example of the messages being sent.

Posted
Hi,

Regarding emails, I want to schedule a cron job which will see if user has
setup any remainders if yes then email will be sent to his email address.
For this reason I wanted to send the unlimited emails because if I have 100
users who has setup remainders I need to send 100 emails. You have asked
from where I will get the email addresses, user will provide the email
address at the time of registration.
Now I am facing an issue, when I execute the cron job I get 500 server
errors but logs do not show any details. I tried to add print statements in
the code but those are not also printing any details in any log file.
How can I debug what the issue is?

Thank you.


On Sat, Mar 14, 2026 at 11:46?PM HelioHost Support
wrote:

> 1. Here is the documentation for Cloudflare to add an MX record
> https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/ The
> value is just carcare.us and priority 0 if you want emails to be
> delivered to your Morty account. 2. Here is the documentation for Django to
> send emails https://docs.djangoproject.com/en/6.0/topics/email/ The from
> address will just be whatever email address you created in Plesk such as
> hello@carcare.us. Here is the documentation on how to find the mail
> values in Plesk
> https://wiki.helionet.org/Unlimited_Email_Accounts#Supported_Protocols Here
> are some example values: Mail server username: hello@carcare.us, Outgoing
> mail server (requires authentication): morty.heliohost.org, Incoming mail
> server: morty.heliohost.org, SMTP port: 465, IMAP port: 993. We recommend
> using your servername (morty.heliohost.org) instead of your actual domain
> (carcare.us) because it is more likely to work in case you don't have
> SSL, etc configured correctly on your domain. 3. In order to increase your
> email sending limit you must answer some additional questions: 1. How many
> emails you plan to send per day? 2. Where you get the email addresses from?
> 3. How can recipients of your emails unsubscribe? 4. Do you have an
> unsubscribe@yourdomain.com address set up? 5. Do you have an
> abuse@yourdomain.com address set up? 6. Does each email have a link to
> unsubscribe? 7. Do you share or sell email addresses that you get? 8. Post
> an example of the messages being sent.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=67156
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Guest
This topic is now closed to further replies.

×
×
  • Create New...