In Datajoint, you are prompted for username and password. I am creating a readthedocs website with Sphinx and I need the system to not prompt for username and password. How can I turn it off?
Is there a way to stop datajoint from asking for username and password when I import it
114 Views Asked by Phil At
        	2
        	
        There are 2 best solutions below
1
                
                        
                            
                        
                        
                            On
                            
                                                    
                    
                DataJoint asks for database credentials only when they are not already provided in the settings dictionary dj.config.  These values can be set programmatically, loaded from a configuration file, or loaded from environment variables. These settings are described in the documentation: https://docs.datajoint.org/python/setup/01-Install-and-Connect.html
Thanks for asking this question! There are basically three ways to do this:
jsonon your project levelDJ_HOST,DJ_USER, andDJ_PASS: Can be set for once likeexportin terminal or permanently in~/.bashrcor~/.zsh_profilefor linux/mac or in your system settings/environment variable settings for windowsPlease check DataJoint Documentation for more details