Re: Stuck with Django on a Synology Diskstation

2020-03-02 Thread nitish kumar
Hi MH,


what flavour of Linux you are using. if it is centos/redhat you can use 
below steps.

   $sudo yum install httpd24-devel.x86_64 gcc git
 $sudo python3.5 -m pip install  mod-wsgi


once installed you need to add site configuration and permissions to your 
Django code.

 $ cd ~/django_app
 $python manage.py makemigrations
 $python manage.py migrate
 Note: if you get any errors remove  "db.sqlite3" file and execute the above 2 
commands
 $python manage.py collectstatic
 $sudo chown :www-data db.sqlite3
 $sudo service apache2 restart


If packages are not available you have to try the offline installation. and 
you need to install dependencies manually.

ping me if you need more help(https://twitter.com/vullinitish)



On Tuesday, 3 March 2020 01:34:23 UTC+5:30, MH wrote:
>
> Hi there
>
> I am rather a newbie, but after some problems I got django installed on my 
> Synology Diskstation. So, I ignored many other problems and am very happy 
> that I built my very first, very simple app. And now I would like to move 
> it from the development stage to the production stage. Obviously I should 
> make a change to a distinct webserver. Synology offers nginx and apache 
> 2.4. I installed both. And now I do not really know how to proceed. Out 
> there, there are many instructions to use something called mod-wsgi. But I 
> cannot install this from the package center of the Diskstation.
>
> I also tried to get opkg working. And this did not turn out so well, too. 
> Most packages return an error, when I try to install something. Before this 
> gets too elusive, I would ask you for guidance and then I can provide you 
> with the following error messages.
>
> Best regards
> MH
>

-- 
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/073b40dd-1379-405e-8c44-b582b72173ac%40googlegroups.com.


Re: angular setup for django (routes not working)

2019-12-29 Thread nitish kumar
we have a web app which is hosted in apache mod_wsgi.

I am trying to update some of the app functionality/UI with angular 8.

everything works of but angular routes are not working , which is important 
for single-page app




On Friday, 27 December 2019 20:50:42 UTC+5:30, lemme smash wrote:
>
> you doing something strange.
> usually, when you want to setup angluar with django, you just using `ng 
> serve` to handle all the interface, and just use django for data and api. 
> it's not a good idea to render angular app with django
>
> On Thursday, December 26, 2019 at 4:05:14 PM UTC+3, nitish kumar wrote:
>>
>> Hi 
>>
>>
>> I am trying to integrate angular8 with Django (2.2.4).
>>
>>
>> *Django side*:
>>
>> URL and view will load angular 'index.html'
>>
>> *angular:*
>>
>> some router-links.
>> based on URL pattern page is getting loaded.
>>
>>
>> *problem statement:*
>>
>> *if host only angular code using 'ng serve' router-link only load's 
>> particular component instead of loading all links in the index.html file*
>> *but when I host in Django router-link is loading the entire page again 
>> (i can see this in developers tools network tab)*
>>
>> *can some please 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/37f1e12f-c6fd-4f83-bb3e-086e05e7a801%40googlegroups.com.


angular setup for django (routes not working)

2019-12-26 Thread nitish kumar
Hi 


I am trying to integrate angular8 with Django (2.2.4).


*Django side*:

URL and view will load angular 'index.html'

*angular:*

some router-links.
based on URL pattern page is getting loaded.


*problem statement:*

*if host only angular code using 'ng serve' router-link only load's 
particular component instead of loading all links in the index.html file*
*but when I host in Django router-link is loading the entire page again (i 
can see this in developers tools network tab)*

*can some please 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/a6616a4c-88a2-4211-a23f-a2fb14db37c3%40googlegroups.com.


Re: Django create username and password, please help!

2019-06-26 Thread nitish kumar
Hi Jackeline ...

Are you able to start the server using (python manage.py runserver)
if yes you can create super user using below command
python manage.py createsuperuser

after giving username and password navigate to below URL
http://localhost:8000/admin/
and use  the superuser credentials to login and here you can N-number of
users :)

Regards,
Nitish

On Tue, Jun 25, 2019 at 8:34 PM Jackeline Peña Alejandro <
jacky.mela...@gmail.com> wrote:

> Hello everyone, I have a query, well is the first time I'm using django to
> create web pages, I would like help in that sense, I have to create a
> username and password, I would like guidance on it, there are tutorials on
> youtube, but do not help me, because the course of following the steps,
> there is always an error, and I get confused.
>
> I'm using pycharm which allowed me to create a virtual environment, to
> install django
>
> I look forward to your prompt response,
>
> Translated with www.DeepL.com/Translator
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/12768018-e286-4fa9-a8aa-6c143013e7e2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAChxUc8Ua62jL5YwBbnxoiVmhn%3D8fmFtZEaL8LNzdgc1gGMjPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.